/* =====================================================
   Ashland Auctions — Map page styles
   Reference: split-view listing with map (Housi)
   Brand: Ashland mustard / charcoal / white
   ===================================================== */

:root {
  --bg: #F9F9F9;
  --surface: #FEFEFE;
  --surface-white: #FFFFFF;
  --surface-light: #E8EEEF;
  --backdrop: rgba(182, 182, 182, 0.3);

  --text-primary: #323232;
  --text-body: #4B4B4B;
  --text-muted: #646464;
  --text-icon: #363636;

  --brand: #EACB2C;
  --brand-deep: #C9AC1F;
  --accent-blue: #5BCAFD;
  --accent-orange: #FFA30F;
  --status-red: #E04646;

  --line: #D4D4D4;
  --line-soft: rgba(212, 212, 212, 0.6);

  --font-display: -apple-system, "SF Pro Display", "Inter", BlinkMacSystemFont, system-ui, sans-serif;
  --font-ui: 'Poppins', sans-serif;
  --font-mark: 'Roboto', sans-serif;

  --r-card: 7.25px;
  --r-surface: 18.125px;
  --r-hero: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

.container {
  max-width: 1690px;
  margin: 0 auto;
  padding: 0 64px;
}
/* Main content reaches the same 50px inset as the home-page hero;
   the nav keeps the 64px container so it matches the home nav exactly. */
.subheader > .container,
.page-head > .container,
.active-filters-wrap.container,
main.container {
  padding-left: 50px;
  padding-right: 50px;
}

/* ============ NAV (matches home page) ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 249, 249, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 24px;
}
.nav-logo { display: inline-flex; align-items: center; text-decoration: none; line-height: 0; }
.nav-logo svg { height: 44px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 33px; list-style: none; }
.nav-links a {
  position: relative; text-decoration: none;
  font-family: var(--font-ui); font-weight: 400; font-size: 14px; line-height: 21px;
  color: var(--text-primary); transition: color 0.2s;
}
.nav-links a:hover { color: var(--brand-deep); }
.nav-links a.is-current { color: var(--brand-deep); }
.nav-links a.is-current::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--brand); border-radius: 2px;
}
.nav-badge {
  position: absolute; top: -11px; right: -8px;
  background: var(--brand); color: var(--text-primary);
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  letter-spacing: 0.1em; padding: 3px 7px; border-radius: 999px;
  text-transform: uppercase; line-height: 1; white-space: nowrap;
  pointer-events: none; display: inline-flex; align-items: center; gap: 4px;
}
.nav-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--status-red); animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}
.nav-cta {
  background: var(--text-primary); color: var(--surface);
  font-family: var(--font-ui); font-weight: 500; font-size: 13px;
  padding: 10px 22px; border-radius: 999px; text-decoration: none;
  transition: all 0.2s;
}
.nav-cta:hover { background: #000; transform: translateY(-1px); }

/* ============ SUBHEADER: Rent/Buy/Sell + search + view toggle ============ */
.subheader {
  background: var(--bg);
  padding: 28px 0 8px;
}
.subheader-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.seg-tabs {
  display: flex;
  gap: 22px;
  align-items: center;
}
.seg-tab {
  background: transparent;
  border: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 0;
  position: relative;
  transition: color 0.2s;
  letter-spacing: -0.005em;
}
.seg-tab:hover { color: var(--text-primary); }
.seg-tab.is-active { color: var(--text-primary); font-weight: 600; }
.seg-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.search-pill {
  flex: 1;
  min-width: 240px;
  max-width: 728px;
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 12px 22px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-pill:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.15);
}
.search-pill i {
  font-size: 18px;
  color: var(--text-muted);
}
.search-pill input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
}
.search-pill input::placeholder { color: var(--text-muted); }

.icon-circle {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-primary);
  transition: all 0.2s;
}
.icon-circle:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}
.icon-circle i { font-size: 18px; }

.view-toggle {
  display: inline-flex;
  margin-left: auto;
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.view-btn {
  background: transparent;
  border: none;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}
.view-btn i { font-size: 16px; }
.view-btn:hover { color: var(--text-primary); }
.view-btn.is-active {
  background: var(--text-primary);
  color: #FFFFFF;
}

/* ============ TITLE ROW ============ */
.page-head {
  padding: 24px 0 12px;
}
.page-head-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.breadcrumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.breadcrumb-right {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}
.result-count {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}
.result-count strong {
  font-weight: 600;
  color: var(--text-primary);
}
.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--text-primary); }
.breadcrumb i { font-size: 13px; color: var(--line); }

.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.page-title em {
  font-style: normal;
  font-weight: 400;
  color: var(--brand);
}
.page-sub {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--text-muted);
}
.page-sub strong { color: var(--text-primary); font-weight: 600; }

.sort-by {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
}
.sort-by-label {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--text-muted);
}
.sort-by-btn {
  background: transparent;
  border: none;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-deep);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.sort-by-btn i { font-size: 16px; }

/* ============ FILTER BUTTON (in subheader, after search) ============ */
.filter-btn-count[hidden],
.active-filters-wrap[hidden] { display: none !important; }
.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  background: var(--surface-white);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.filter-btn:hover {
  border-color: var(--text-primary);
  box-shadow: 0 4px 14px -8px rgba(0,0,0,0.15);
}
.filter-btn i { font-size: 18px; }
.filter-btn-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: var(--text-primary);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

/* ============ ACTIVE FILTER CHIPS ROW ============ */
.active-filters-wrap {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--text-primary);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 8px 6px 14px;
  border-radius: 999px;
  border: none;
}
.active-chip-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
  padding: 0;
  transition: background 0.15s;
}
.active-chip-x:hover { background: rgba(255,255,255,0.32); }
.active-chip-x i { font-size: 12px; }
.clear-all-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 8px;
}
.clear-all-btn:hover { color: var(--text-primary); }

/* ============ FILTER DRAWER (right-side sidebar) ============ */
.filter-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.45);
  z-index: 110;
  opacity: 0;
  transition: opacity 0.25s;
}
.filter-overlay.is-open { opacity: 1; }
.filter-drawer {
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: 420px;
  max-width: 92vw;
  background: var(--surface-white);
  z-index: 111;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -16px 0 40px -16px rgba(0,0,0,0.25);
}
.filter-drawer.is-open { transform: translateX(0); }
.filter-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.filter-drawer-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.filter-close {
  width: 36px; height: 36px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.15s, border-color 0.15s;
}
.filter-close:hover { background: var(--bg); border-color: var(--text-primary); }
.filter-close i { font-size: 18px; }

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px 24px;
}
.filter-group {
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft, var(--line));
}
.filter-group:last-child { border-bottom: none; }
.filter-group-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.filter-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
}
.filter-check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
  user-select: none;
}
.filter-check input {
  appearance: none;
  width: 18px; height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 5px;
  background: var(--surface-white);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
}
.filter-check input:hover { border-color: var(--text-primary); }
.filter-check input:checked {
  background: var(--text-primary);
  border-color: var(--text-primary);
}
.filter-check input:checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 1px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.filter-subtitle {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin: 0 0 12px;
}
.filter-pills-scroller {
  position: relative;
}
.filter-pill-more {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 4px;
  align-self: center;
}
.filter-pill-more:hover { opacity: 0.7; }
.filter-pills.filter-pills-row {
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-right: 4px;
}
.filter-pills-row::-webkit-scrollbar { display: none; }
.filter-pills-row .filter-pill { flex: 0 0 auto; }
.filter-pills-arrow {
  position: absolute;
  top: 50%;
  right: -2px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 17px;
  box-shadow: -8px 0 12px -4px rgba(255,255,255,0.95), 0 1px 4px rgba(0,0,0,0.08);
  transition: border-color 0.15s, background 0.15s;
}
.filter-pills-arrow:hover { border-color: var(--text-primary); background: var(--text-primary); color: #fff; }
.filter-pills-arrow-prev {
  right: auto;
  left: -2px;
  box-shadow: 8px 0 12px -4px rgba(255,255,255,0.95), 0 1px 4px rgba(0,0,0,0.08);
}
.filter-tags-wrap {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  animation: filterTagsIn 0.2s ease;
}
@keyframes filterTagsIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-pill {
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text-body);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.filter-pill:hover { border-color: var(--text-primary); color: var(--text-primary); }
.filter-pill.is-active {
  background: var(--text-primary);
  color: #fff;
  border-color: var(--text-primary);
}

.filter-price-inputs {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.filter-price-field { flex: 1; }
.filter-price-field label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.filter-price-input {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-white);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  height: 42px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filter-price-input:focus-within {
  border-color: var(--text-primary);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}
.filter-price-input span {
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
}
.filter-price-input input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-ui);
  font-size: 14px;
  color: var(--text-primary);
  width: 100%;
}
.filter-price-input input::-webkit-outer-spin-button,
.filter-price-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.filter-price-sep {
  color: var(--text-muted);
  font-size: 18px;
  padding-bottom: 10px;
}

.filter-drawer-foot {
  display: flex;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  flex-shrink: 0;
  background: var(--surface-white);
}
.filter-reset {
  flex: 1;
  background: transparent;
  border: 1.5px solid var(--line);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.filter-reset:hover { border-color: var(--text-primary); background: var(--bg); }
.filter-apply {
  flex: 2;
  background: var(--brand);
  border: 1.5px solid var(--brand);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.filter-apply:hover { background: var(--brand-deep); border-color: var(--brand-deep); }

/* ============ MAP + LIST LAYOUT ============ */
.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  height: calc(100vh - 220px);
  min-height: 600px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: 0 12px 32px -20px rgba(0,0,0,0.18);
  margin-bottom: 40px;
  transition: grid-template-columns 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.map-layout.is-map-min {
  grid-template-columns: 1fr;
}

/* ============ LIST COLUMN ============ */
.listing-col {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface-white);
  border-right: 1px solid var(--line-soft);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.listing-col::-webkit-scrollbar { width: 6px; }
.listing-col::-webkit-scrollbar-track { background: transparent; }
.listing-col::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.listing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  row-gap: 20px;
  padding: 16px;
}
.map-layout.is-map-min .listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* ============ LISTING CARD ============ */
.listing-card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease;
  scroll-margin-top: 24px;
}
.listing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(0,0,0,0.25);
  border-color: var(--line);
}
.listing-card.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand), 0 18px 40px -22px rgba(201, 172, 31, 0.45);
}

/* Card image */
.listing-image {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-light);
  overflow: hidden;
}
.listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.listing-card:hover .listing-image img { transform: scale(1.04); }

/* Camera count chip (bottom-right) */
.camera-chip {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(50, 50, 50, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.camera-chip i { font-size: 12px; }

/* Favourite (save) button — top-right of image */
.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-body);
  box-shadow: 0 4px 12px -4px rgba(0,0,0,0.28);
  transition: transform 0.2s, color 0.2s;
  z-index: 3;
}
.fav-btn:hover { transform: scale(1.08); color: var(--brand-deep); }
.fav-btn.is-on { color: var(--brand-deep); }
.fav-btn i { font-size: 16px; }

/* Order index pin (top-left) */
.order-pin {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 4px 9px;
  border-radius: 999px;
  text-transform: uppercase;
}

/* Agent card overlay (bottom of image) */
.agent-card {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  background: var(--surface-white);
  border-radius: 14px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,0.25);
}
.agent-avatar {
  width: 34px; height: 34px;
  border-radius: 999px;
  background: var(--surface-light);
  overflow: hidden;
  flex-shrink: 0;
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agent-info { min-width: 0; flex: 1; }
.agent-name-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  color: var(--text-primary);
}
.agent-name-row i {
  color: var(--accent-blue);
  font-size: 14px;
}
.agent-phone {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
}
.agent-phone i { font-size: 13px; }

/* Card body */
.listing-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Status + actions row */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 163, 15, 0.18);
}
.status-pill.is-live::before {
  background: var(--status-red);
  box-shadow: 0 0 0 3px rgba(224, 70, 70, 0.18);
  animation: livePulse 1.4s ease-in-out infinite;
}
.status-pill .closes-in {
  color: var(--text-muted);
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.status-pill .closes-in i { font-size: 13px; color: var(--accent-orange); }
.status-pill.is-live .closes-in i { color: var(--status-red); }
.js-countdown { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--text-body); letter-spacing: -0.01em; }

.card-actions {
  display: inline-flex;
  gap: 6px;
}
.card-action-btn {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.2s;
}
.card-action-btn:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.card-action-btn.heart.is-on {
  border-color: var(--brand);
  color: var(--brand-deep);
  background: rgba(234, 203, 44, 0.12);
}
.card-action-btn i { font-size: 15px; }

/* Price + countdown row */
.price-time-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.listing-price {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 20px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.listing-countdown {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.listing-countdown i { font-size: 13px; color: var(--accent-orange); }

/* Bidder deposit line */
.listing-deposit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--text-primary);
  background: #E8E8E8;
  padding: 4px 10px;
  border-radius: 999px;
  margin-top: -2px;
}
.listing-deposit strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Spec row: bed/bath/sqft (or for non-residential: type/lot/year) */
.spec-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-body);
}
.spec {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.spec i { font-size: 16px; color: var(--text-muted); }
.spec strong { font-weight: 600; color: var(--text-primary); }

/* Address line */
.listing-address {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Listed by line (separator above) */
.listed-by {
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  font-style: italic;
}
.listed-by strong { font-style: normal; font-weight: 500; color: var(--text-body); }

/* ============ MAP PANEL ============ */
.map-col {
  min-width: 0;
  height: 100%;
}
.map-panel {
  position: relative;
  overflow: hidden;
  height: 100%;
}
.map-layout.is-map-min .map-col { display: none; }
#map {
  width: 100%;
  height: 100%;
  background: #EEF2F4;
}

/* Map overlay icon buttons */
.map-icon-btn {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-primary);
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.18);
  transition: all 0.2s;
}
.map-icon-btn:hover {
  background: var(--text-primary);
  color: #FFFFFF;
  border-color: var(--text-primary);
}
.map-icon-btn i { font-size: 18px; }

.map-tl { position: absolute; top: 16px; left: 16px; z-index: 500; }
.map-tr {
  position: absolute; top: 16px; right: 16px; z-index: 500;
  display: flex; flex-direction: column; gap: 8px;
}
.map-br {
  position: absolute; bottom: 18px; right: 16px; z-index: 500;
  display: flex; flex-direction: column; gap: 10px;
  align-items: flex-end;
}
.map-zoom-stack {
  display: flex;
  flex-direction: column;
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px -6px rgba(0,0,0,0.18);
}
.map-zoom-stack .map-icon-btn {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.map-zoom-stack .map-icon-btn:first-child {
  border-bottom: 1px solid var(--line-soft);
}

/* Floating restore button when map is minimized */
.map-restore {
  position: fixed;
  right: 32px;
  bottom: 32px;
  background: var(--text-primary);
  color: #FFFFFF;
  border: none;
  padding: 14px 22px 14px 18px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 10px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.4);
  z-index: 1000;
  transition: transform 0.2s, background 0.2s;
}
.map-restore:hover {
  background: #000;
  transform: translateY(-2px);
}
.map-restore i { font-size: 18px; color: var(--brand); }
body.is-map-minimized .map-restore { display: inline-flex; }

/* ============ MAP PRICE-PILL MARKERS ============ */
.ash-marker { background: transparent; border: none; }
.price-pin {
  position: relative;
  transform: translate(-50%, -100%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.price-pin:hover { transform: translate(-50%, -106%); }
.price-pin .pill {
  background: var(--text-primary);
  color: #FFFFFF;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12.5px;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: -0.01em;
  box-shadow: 0 6px 14px -6px rgba(0,0,0,0.35);
  position: relative;
}
.price-pin .pill::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 8px; height: 8px;
  background: var(--text-primary);
  border-radius: 2px;
}
.price-pin .dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--accent-orange);
  border: 2px solid #FFFFFF;
  margin-top: 6px;
  box-shadow: 0 4px 8px -2px rgba(0,0,0,0.25);
}
.price-pin.is-selected {
  z-index: 1000 !important;
}
.price-pin.is-selected .pill {
  background: var(--brand);
  color: var(--text-primary);
  font-weight: 700;
  transform: scale(1.08);
  box-shadow: 0 10px 22px -8px rgba(201, 172, 31, 0.6);
}
.price-pin.is-selected .pill::after {
  background: var(--brand);
}
.price-pin.is-selected .dot {
  background: var(--brand-deep);
  transform: scale(1.15);
}

/* ============ MAP POPUP CARD ============ */
.leaflet-popup-content-wrapper {
  border-radius: 18px !important;
  padding: 0 !important;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.25) !important;
  border: 1px solid var(--line-soft) !important;
  background: var(--surface-white) !important;
}
.leaflet-popup-content {
  margin: 0 !important;
  width: 320px !important;
  line-height: 1.5 !important;
}
.leaflet-popup-tip { display: none !important; }
.leaflet-popup-close-button { display: none !important; }
.leaflet-popup-content-wrapper a { color: inherit !important; }

.popup-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
}
.popup-img {
  position: relative;
  background: var(--surface-light);
  overflow: hidden;
}
.popup-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.popup-body {
  padding: 14px 16px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.popup-heart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 28px; height: 28px;
  border-radius: 999px;
  background: var(--surface-white);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--text-body);
  transition: all 0.2s;
}
.popup-heart:hover {
  color: var(--brand-deep);
  border-color: var(--brand);
}
.popup-heart i { font-size: 14px; }
.popup-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-body);
  padding-right: 32px;
}
.popup-status::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-orange);
  box-shadow: 0 0 0 3px rgba(255, 163, 15, 0.18);
}
.popup-clock {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 6px;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  color: var(--text-muted);
}
.popup-clock i { font-size: 12px; color: var(--accent-orange); }
.popup-price {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  line-height: 1.1;
}
.popup-specs {
  display: flex;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-body);
}
.popup-specs .spec { gap: 4px; }
.popup-specs .spec i { font-size: 13px; }
.popup-address {
  font-family: var(--font-display);
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

/* Empty state */
.empty-state {
  grid-column: 1 / -1;
  padding: 60px 24px;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-ui);
  font-size: 14px;
}
.empty-state i { font-size: 32px; color: var(--line); display: block; margin-bottom: 12px; }

/* ============ CALENDAR VIEW ============ */
.map-layout.is-hidden { display: none; }
.cal-view { display: none; }
.cal-view.is-shown {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 80px;
}

.cal-card {
  background: var(--surface-white);
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  padding: 24px 26px 22px;
  box-shadow: 0 12px 32px -20px rgba(0,0,0,0.18);
  position: sticky;
  top: 100px;
}
.cal-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.cal-head h3 {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  letter-spacing: -0.02em; color: var(--text-primary);
}
.cal-nav-btn {
  width: 36px; height: 36px; border-radius: 999px;
  background: transparent; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-primary); transition: all 0.2s;
}
.cal-nav-btn:hover { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }
.cal-nav-btn i { font-size: 18px; }

.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 8px; }
.cal-weekdays span {
  text-align: center; font-family: var(--font-ui);
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted);
}
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-day {
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-family: var(--font-ui); font-size: 14px; color: var(--text-primary);
  border: 1px solid transparent;
}
.cal-day-num { line-height: 1; }
.cal-day.is-other { color: #cfcfcf; }
.cal-day.is-past:not(.has-auctions) { color: var(--line); }
.cal-day.is-today { border-color: var(--text-primary); font-weight: 700; }
.cal-day.has-auctions {
  background: rgba(234, 203, 44, 0.14);
  font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.cal-day.has-auctions:hover { background: rgba(234, 203, 44, 0.30); }
.cal-day.is-selected {
  background: var(--brand); color: var(--text-primary);
  border-color: var(--brand-deep); font-weight: 700;
}
.cal-dot-row { display: flex; gap: 3px; }
.cal-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent-orange); }
.cal-day.is-selected .cal-dot { background: var(--text-primary); }
.cal-count {
  font-family: var(--font-ui); font-weight: 700; font-size: 12px;
  line-height: 1; color: var(--text-primary);
  background: var(--brand); border-radius: 999px; padding: 2px 6px;
}
.cal-day.is-selected .cal-count { background: var(--text-primary); color: #fff; }
/* Days that have auctions stay fully legible even outside the current month */
.cal-day.is-other.has-auctions,
.cal-day.is-past.has-auctions { color: var(--text-primary); }

.cal-legend { display: flex; gap: 18px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.cal-legend-item { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-ui); font-size: 12px; color: var(--text-muted); }
.cal-legend-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(234, 203, 44, 0.85); }
.cal-legend-today { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--text-primary); }

.cal-agenda { display: flex; flex-direction: column; gap: 26px; }
.cal-agenda-head { display: flex; align-items: center; justify-content: space-between; }
.cal-agenda-head h4 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 18px; color: var(--text-primary); letter-spacing: -0.015em;
}
.cal-clear {
  background: transparent; border: none; color: var(--brand-deep);
  font-family: var(--font-ui); font-weight: 600; font-size: 13px; cursor: pointer;
}
.cal-clear:hover { text-decoration: underline; }
.agenda-date {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 10px; margin-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.agenda-date strong { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--text-primary); }
.agenda-when {
  font-family: var(--font-ui); font-size: 12px; font-weight: 500;
  color: var(--text-muted); background: var(--surface-light);
  padding: 3px 10px; border-radius: 999px;
}
.agenda-when.is-soon { background: rgba(224, 70, 70, 0.12); color: var(--status-red); }
.agenda-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: 14px;
  text-decoration: none; color: inherit; transition: background 0.2s;
}
.agenda-item + .agenda-item { margin-top: 2px; }
.agenda-item:hover { background: var(--surface-light); }
.agenda-thumb { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--surface-light); }
.agenda-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.agenda-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.agenda-title { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agenda-meta { display: flex; align-items: center; gap: 10px; font-family: var(--font-ui); font-size: 12px; color: var(--text-muted); }
.agenda-clock { display: inline-flex; align-items: center; gap: 4px; }
.agenda-clock i { font-size: 13px; color: var(--accent-orange); }
.agenda-price { font-family: var(--font-ui); font-weight: 600; font-size: 15px; color: var(--text-primary); white-space: nowrap; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1180px) {
  .container { padding: 0 48px; }
  .subheader > .container, .page-head > .container, .active-filters-wrap.container, main.container { padding-left: 40px; padding-right: 40px; }
  .listing-grid { grid-template-columns: 1fr; }
  .map-layout.is-map-min .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .container { padding: 0 32px; }
  .subheader > .container, .page-head > .container, .active-filters-wrap.container, main.container { padding-left: 24px; padding-right: 24px; }
  .map-layout {
    grid-template-columns: 1fr;
    height: auto;
    border-radius: 16px;
  }
  .map-col { height: 480px; }
  .map-panel { height: 480px; }
  .listing-col { height: 560px; border-right: none; border-bottom: 1px solid var(--line-soft); }
  .map-layout.is-map-min { grid-template-columns: 1fr; }
  .listing-grid { grid-template-columns: 1fr 1fr; }
  .map-layout.is-map-min .listing-grid { grid-template-columns: 1fr 1fr; }
  .cal-view.is-shown { grid-template-columns: 1fr; }
  .cal-card { position: relative; top: 0; }
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .subheader > .container, .page-head > .container, .active-filters-wrap.container, main.container { padding-left: 16px; padding-right: 16px; }
  .nav-links { display: none; }
  .listing-grid { grid-template-columns: 1fr; }
  .map-layout.is-map-min .listing-grid { grid-template-columns: 1fr; }
  .subheader-inner { gap: 12px; }
  .seg-tabs { gap: 14px; }
  .search-pill { flex: 1; min-width: 0; order: 1; }
  .filter-btn {
    order: 2;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 999px;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
  }
  .filter-btn span:not(.filter-btn-count) { display: none; }
  .filter-btn-count {
    position: absolute;
    top: -4px; right: -4px;
  }
  .view-toggle { order: 3; flex-basis: 100%; margin-left: 0; margin-right: auto; }
  .page-head-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .sort-by { padding-bottom: 0; }
  .map-tl { display: none; }
}

/* ---- flow navigation affordances (added) ---- */
.listing-details-link{display:inline-flex;align-items:center;gap:6px;margin-top:12px;font-family:var(--font-ui);font-size:13px;font-weight:600;color:var(--text-primary);text-decoration:none;}
.listing-details-link i{font-size:15px;transition:transform .2s;}
.listing-details-link:hover{color:var(--brand-deep);}
.listing-details-link:hover i{transform:translateX(3px);}
.ash-popup-cta{display:flex;align-items:center;justify-content:center;gap:6px;margin-top:10px;background:var(--brand);color:var(--text-primary);font-family:var(--font-ui);font-size:13px;font-weight:700;padding:9px 14px;border-radius:8px;text-decoration:none;transition:background .2s;}
.ash-popup-cta:hover{background:var(--brand-deep);color:var(--text-primary);}

/* ---- image tag filter (drawer) ---- */
/* A compact multi-select: ~50 tags as checkboxes made the drawer far too long,
   so the whole group collapses into one control with pills for what is chosen.
   The panel opens inline rather than floating — the drawer body scrolls and
   would clip an absolutely positioned panel. */
.tagms { position: relative; }
.tagms-control {
  display: flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 6px 10px 6px 12px;
  border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; cursor: pointer; transition: border-color .15s;
}
.tagms-control:hover { border-color: var(--text-primary); }
.tagms-control:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.tagms.is-open .tagms-control { border-color: var(--text-primary); }
.tagms-pills { flex: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.tagms-ph { font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); }
/* Mirrors .ptag--attr on the property detail page, value for value, so an image
   tag reads the same wherever it appears. Only the right padding is trimmed, to
   make room for the remove button. */
.tagms-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface-light); color: var(--text-body); border: none;
  font-family: var(--font-ui); font-size: 13px; font-weight: 600;
  padding: 8px 8px 8px 14px; border-radius: 10px; line-height: 1.2; white-space: nowrap;
}
.tagms-pill i { font-size: 15px; }
.tagms-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; padding: 0; border: 0; border-radius: 999px;
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: 12px;
}
.tagms-x:hover { background: rgba(0,0,0,.08); color: var(--text-primary); }
.tagms-caret { font-size: 16px; color: var(--text-muted); transition: transform .15s; }
.tagms.is-open .tagms-caret { transform: rotate(180deg); }

.tagms-panel {
  margin-top: 8px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; overflow: hidden;
}
.tagms-panel[hidden] { display: none; }
.tagms-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tagms-search i { font-size: 15px; color: var(--text-muted); }
.tagms-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-family: var(--font-ui); font-size: 13px; color: var(--text-primary);
}
.tagms-search input::-webkit-search-cancel-button { cursor: pointer; }
.tagms-opts { max-height: 216px; overflow-y: auto; padding: 8px 12px 10px; }
.tagms-group + .tagms-group { margin-top: 10px; }
.tagms-group-t {
  margin: 0 0 4px; font-family: var(--font-ui); font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.tagms-opt {
  display: flex; align-items: center; gap: 9px; padding: 5px 0; cursor: pointer;
  font-family: var(--font-ui); font-size: 13px; color: var(--text-body);
}
.tagms-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.tagms-box {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 17px; height: 17px; border: 1.5px solid var(--line); border-radius: 5px;
  background: #fff; color: transparent; font-size: 11px; transition: all .12s;
}
.tagms-opt input:checked + .tagms-box { background: var(--text-primary); border-color: var(--text-primary); color: #fff; }
.tagms-opt input:focus-visible + .tagms-box { outline: 2px solid var(--brand); outline-offset: 2px; }
.tagms-lbl { min-width: 0; }
.tagms-empty { margin: 0; font-family: var(--font-ui); font-size: 13px; color: var(--text-muted); padding: 4px 0; }
