/* =========================================================
   EasyNajom — homepage (Airbnb-style marketplace)
   ========================================================= */

body.home-page {
  background: #fff;
}

body.home-page section {
  padding: 0;
}

.home-main {
  padding: 24px 0 56px;
  min-height: calc(100vh - var(--header-height) - 120px);
}

.home-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Compact marketing headline */
.home-intro {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
}

/* Ambient brand wash behind the hero — pure CSS, no image payload */
.home-intro::before {
  content: '';
  position: absolute;
  top: -90px;
  bottom: -28px;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(38% 60% at 26% 40%, rgba(31, 110, 115, 0.3) 0%, rgba(31, 110, 115, 0) 100%),
    radial-gradient(36% 58% at 74% 32%, rgba(139, 92, 246, 0.26) 0%, rgba(139, 92, 246, 0) 100%),
    radial-gradient(44% 60% at 52% 92%, rgba(245, 165, 74, 0.2) 0%, rgba(245, 165, 74, 0) 100%);
  -webkit-mask-image: radial-gradient(58% 62% at 50% 46%, #000 30%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(58% 62% at 50% 46%, #000 30%, rgba(0, 0, 0, 0) 100%);
}

.home-free-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
  border: 1px solid rgba(230, 142, 44, 0.28);
  color: #C56A12;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.home-free-badge i {
  font-size: 15px;
}

.home-intro h1 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 10px;
}

.home-intro h1 em {
  font-style: normal;
  color: var(--primary);
}

.home-intro-desktop {
  display: block;
}

.home-intro-mobile {
  display: none;
}

.home-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(31, 110, 115, 0.08);
  border: 1px solid rgba(31, 110, 115, 0.18);
  color: var(--primary-900);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.home-location-badge i {
  font-size: 14px;
}

.home-location-badge[hidden] {
  display: none !important;
}

.home-panel-location-badge {
  margin-bottom: 10px;
}

.home-intro-actions {
  display: none;
}

/* Mobile search + add bar */
.home-search-mobile-bar {
  display: none;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.home-add-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  border: 1px solid #DDDDDD;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--dark) 0%, #334155 100%);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.14);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

.home-add-trigger:active {
  transform: scale(0.96);
}

.home-intro-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-intro-action i {
  font-size: 14px;
}

.home-intro-action--offer {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
  border: 1px solid rgba(230, 142, 44, 0.28);
  color: #C56A12;
}

.home-intro-action--listing {
  background: var(--tenant-soft);
  border: 1px solid rgba(139, 92, 246, 0.22);
  color: var(--tenant-dark);
}

.home-intro-action:active {
  transform: scale(0.98);
}

.home-intro p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Category tabs (Airbnb-style) */
.home-categories {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}

.home-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 28px 16px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--text-light);
  position: relative;
  transition: color 0.2s ease;
  min-width: 140px;
}

.home-category-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  background: var(--light);
  border: 1px solid var(--border);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-category-label {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.home-tab-label--short {
  display: none;
}

.home-category::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 16px;
  right: 16px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: transparent;
  transition: background 0.2s ease;
}

.home-category:hover {
  color: var(--dark);
}

.home-category:hover .home-category-icon {
  transform: translateY(-2px);
}

.home-category.is-active {
  color: var(--dark);
}

.home-category.is-active .home-category-icon {
  background: var(--primary-soft);
  border-color: rgba(31, 110, 115, 0.25);
  color: var(--primary);
}

.home-category.is-active::after {
  background: var(--primary);
}

.home-category--tenant.is-active .home-category-icon {
  background: var(--tenant-soft);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--tenant);
}

.home-category--tenant.is-active::after {
  background: var(--tenant);
}

/* Search area */
.home-search-area {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.home-search-area.is-segment-open {
  z-index: 40;
  isolation: isolate;
}

.home-search-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.home-search-bar-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 980px;
}

.home-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-search {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #DDDDDD;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  max-width: 820px;
  width: 100%;
  flex: 1;
  min-width: 0;
  position: relative;
  transition: box-shadow 0.2s ease;
}

.home-search.has-open-segment {
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.14);
  background: #F7F7F7;
}

.home-search-segment {
  flex: 1;
  min-width: 0;
  padding: 14px 20px;
  position: relative;
  border-radius: 999px;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.home-search-segment.is-expanded {
  background: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  z-index: 2;
}

.home-search-segment-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  padding: 0;
}

.home-search-segment-toggle-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: 0.01em;
}

.home-search-segment-toggle-value {
  font-size: 14px;
  font-weight: 500;
  color: #717171;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.home-search-segment:not(.is-expanded):not(:last-of-type)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 32px;
  background: #DDDDDD;
}

.home-search.has-open-segment .home-search-segment::after {
  display: none;
}

.home-search-segment-panel {
  display: none;
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 360px;
  max-width: min(420px, 92vw);
  background: #fff;
  border-radius: 32px;
  border: 1px solid #EBEBEB;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  z-index: 30;
  overflow: hidden;
}

.home-search-segment.is-expanded .home-search-segment-panel {
  display: block;
}

.home-search-segment-panel-inner {
  display: block;
  padding: 24px;
  max-height: min(420px, 60vh);
  overflow-y: auto;
}

.home-search-segment-title {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.home-search-segment-sub {
  font-size: 13px;
  color: #717171;
  margin: 0 0 16px;
}

.home-search-segment-label {
  display: none;
}

.home-search-popover-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  z-index: 1;
  pointer-events: auto;
}

.home-search-area.is-segment-open .home-search-popover-backdrop {
  z-index: 1;
}

.home-search-area.is-segment-open .home-search-wrap {
  z-index: 2;
}

/* Location dropdown list */
.home-location-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: min(360px, 52vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.home-location-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-radius: 14px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: var(--dark);
  transition: background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.home-location-item:hover,
.home-location-item.is-selected {
  background: #F7F7F7;
}

.home-location-item-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #F7F7F7;
  color: #484848;
  font-size: 20px;
  flex-shrink: 0;
}

.home-location-item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.home-location-item-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}

.home-location-item-sub {
  font-size: 13px;
  color: #717171;
}

.home-location-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-location-chip {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 1.5px solid #DDDDDD;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-location-chip.is-selected {
  border-color: #222;
  background: #F7F7F7;
  box-shadow: inset 0 0 0 1px #222;
}

.home-location-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-location-more-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 46px;
  margin-top: 2px;
  padding: 11px 14px;
  border: 1.5px dashed #B0B0B0;
  border-radius: 14px;
  background: linear-gradient(180deg, #FAFAFA 0%, #F3F3F3 100%);
  color: var(--dark);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.home-location-more-toggle:hover {
  border-color: var(--primary);
  background: rgba(31, 110, 115, 0.06);
}

.home-location-more-toggle.is-expanded {
  border-style: solid;
  border-color: #DDDDDD;
  background: #fff;
  box-shadow: none;
}

.home-location-more-toggle-label {
  flex: 0 0 auto;
}

.home-location-more-toggle-meta {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
  text-align: left;
}

.home-location-more-toggle.is-expanded .home-location-more-toggle-meta {
  display: none;
}

.home-location-more-toggle-icon {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.home-location-more-toggle.is-expanded .home-location-more-toggle-icon {
  transform: rotate(180deg);
}

.home-location-chips--extra[hidden] {
  display: none !important;
}

/* Type segmented control */
.home-type-segments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-type-segment {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: 1px solid #DDDDDD;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-type-segment i {
  font-size: 17px;
  line-height: 1;
  opacity: 0.82;
  flex-shrink: 0;
}

.home-type-segment.is-selected i {
  opacity: 1;
}

.home-type-segment:hover {
  border-color: #222;
}

.home-type-segment.is-selected {
  border-color: #222;
  border-width: 2px;
  padding: 9px 15px;
}

.home-type-segments--modal,
.home-type-segments--mobile {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 0;
}

.home-type-segments--modal .home-type-segment,
.home-type-segments--mobile .home-type-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-height: 76px;
  padding: 12px 8px;
  border-width: 1px;
  border-radius: 14px;
  text-align: center;
}

.home-type-segments--modal .home-type-segment.is-selected,
.home-type-segments--mobile .home-type-segment.is-selected {
  padding: 12px 8px;
  border-width: 1px;
  box-shadow: 0 0 0 1px #222;
}

.home-type-segments--modal .home-type-segment i,
.home-type-segments--mobile .home-type-segment i {
  font-size: 22px;
}

/* Price range panel */
.home-price-range {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-price-histogram {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 56px;
  padding: 0 4px;
}

.home-price-histogram span {
  flex: 1;
  min-width: 3px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(31, 110, 115, 0.55) 0%, rgba(31, 110, 115, 0.25) 100%);
}

.home-price-histogram span:nth-child(odd) { height: 45%; }
.home-price-histogram span:nth-child(even) { height: 70%; }
.home-price-histogram span:nth-child(3n) { height: 100%; }
.home-price-histogram span:nth-child(5n) { height: 35%; }

.home-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-price-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-price-field span {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
}

.home-price-field input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #B0B0B0;
  border-radius: 999px;
  font: inherit;
  font-size: 15px;
  color: var(--dark);
  background: #fff;
}

.home-price-field--full {
  max-width: none;
}

/* When / move-in */
.home-when-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.home-when-option {
  padding: 10px 16px;
  border: 1px solid #DDDDDD;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}

.home-when-option.is-selected {
  border-color: #222;
  box-shadow: inset 0 0 0 1px #222;
}

.home-date-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-date-field span {
  font-size: 12px;
  font-weight: 600;
  color: #717171;
}

.home-date-field input {
  padding: 12px 14px;
  border: 1px solid #B0B0B0;
  border-radius: 12px;
  font: inherit;
}

/* Filters button */
.home-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border: 1px solid #222;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.home-filters-btn:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.home-filters-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #222;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Quick filter chips row */
.home-filter-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  width: 100%;
  max-width: 980px;
  padding: 2px 4px 4px;
  scrollbar-width: none;
}

.home-filter-chips::-webkit-scrollbar {
  display: none;
}

.home-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border: 1px solid #DDDDDD;
  border-radius: 999px;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

.home-filter-chip.is-active {
  border-color: #222;
  border-width: 2px;
  padding: 9px 15px;
}

.home-filter-chip i {
  font-size: 14px;
  opacity: 0.72;
}

/* Filters modal */
.home-filters-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.home-filters-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.home-filters-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.home-filters-modal-shell {
  position: relative;
  width: min(580px, 100%);
  max-height: min(88vh, 760px);
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.home-filters-modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 18px 56px;
  border-bottom: 1px solid #EBEBEB;
}

.home-filters-modal-header h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}

.home-filters-modal-close {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 18px;
  color: var(--dark);
}

.home-filters-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 4px 24px 8px;
}

.home-filters-section,
.home-filters-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #EBEBEB;
}

.home-filters-section[hidden],
.home-filters-cards[hidden],
[data-tab-section][hidden] {
  display: none !important;
}

.home-filters-section h3 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
  color: var(--dark);
}

.home-filters-section-sub {
  font-size: 13px;
  color: #717171;
  margin: -8px 0 0;
}

.home-filters-section .home-price-slider-summary,
.home-filters-section .home-score-slider-summary {
  margin: -4px 0 0;
}

.home-filters-section .home-filters-recommended {
  margin-top: 0;
}

.home-filters-section .home-when-options,
.home-when-options--modal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.home-when-options--modal .home-when-option {
  width: 100%;
  text-align: center;
  border-radius: 14px;
  padding: 12px 10px;
}

.home-filters-modal-body [id$="Mount"]:empty {
  display: none;
}

.home-filters-section .home-date-field {
  margin-top: 0;
}

.home-filters-section-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.home-filters-section-heading h3 {
  margin: 0;
}

.home-filter-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: #F0F0F0;
  color: #717171;
  font-size: 14px;
  cursor: help;
  flex-shrink: 0;
}

.home-filter-info::after {
  content: attr(data-info-text);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(280px, 70vw);
  padding: 10px 12px;
  border-radius: 12px;
  background: #222;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  z-index: 5;
}

.home-filter-info:hover::after,
.home-filter-info:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.home-score-slider-summary {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.home-score-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-score-slider-track {
  position: relative;
  height: 36px;
}

.home-score-slider-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #EBEBEB;
}

.home-score-slider-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-900) 100%);
  pointer-events: none;
  width: 0;
}

.home-score-slider-track input[type='range'] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  background: none;
  -webkit-appearance: none;
  appearance: none;
}

.home-score-slider-track input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #222;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-score-slider-track input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid #222;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-score-slider-track input[type='range']::-webkit-slider-runnable-track,
.home-score-slider-track input[type='range']::-moz-range-track {
  background: transparent;
  border: none;
}

.home-score-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
}

.home-filters-recommended,
.home-filters-recommended--wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.home-filters-cards-label {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-filter-card.is-selected,
.home-filter-card[data-household-type-value].is-selected {
  border-color: #222;
  box-shadow: 0 0 0 1px #222;
}

.home-filter-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 104px;
  height: 100%;
  padding: 14px 8px;
  border: 1px solid #EBEBEB;
  border-radius: 14px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--dark);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.home-filter-card.is-active {
  border-color: #222;
  box-shadow: 0 0 0 1px #222;
}

.home-filter-card-icon {
  font-size: 24px;
  line-height: 1;
  color: var(--primary);
}

.home-filter-card-label,
.home-filter-card > span:not(.home-filter-card-icon):not(.home-filter-stepper) {
  font-size: 12px;
  font-weight: 600;
}

.home-filter-card--stepper {
  cursor: default;
  gap: 4px;
  padding: 10px 6px;
}

.home-filter-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 2px;
}

.home-filter-stepper-btn {
  width: 26px;
  height: 26px;
  border: 1px solid #DDDDDD;
  border-radius: 50%;
  background: #fff;
  font: inherit;
  font-size: 16px;
  line-height: 1;
  color: var(--dark);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.home-filter-stepper-btn:hover {
  border-color: #222;
  background: #F7F7F7;
}

.home-filter-stepper-value {
  min-width: 28px;
  text-align: center;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
}

.home-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.home-filters-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
}

.home-filters-grid select {
  padding: 10px 12px;
  border: 1px solid #B0B0B0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  background: #fff;
}

.home-filters-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid #EBEBEB;
  margin-top: -1px;
}

.home-filters-clear {
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  color: var(--dark);
}

.home-filters-submit {
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: #222;
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.home-search-btn-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 4px;
  flex-shrink: 0;
}

.home-search-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-900) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(31, 110, 115, 0.35);
  flex-shrink: 0;
}

.home-search-btn:hover {
  transform: scale(1.04);
  box-shadow: 0 6px 20px rgba(31, 110, 115, 0.45);
}

.home-search-btn--add {
  font-size: 22px;
}

.home-search-btn--add.home-search-btn--accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  box-shadow: 0 4px 14px rgba(230, 142, 44, 0.35);
}

.home-search-btn--add.home-search-btn--accent:hover {
  box-shadow: 0 6px 20px rgba(230, 142, 44, 0.45);
}

.home-search-btn--add.home-search-btn--tenant {
  background: linear-gradient(135deg, var(--tenant) 0%, var(--tenant-dark) 100%);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35);
}

.home-search-btn--add.home-search-btn--tenant:hover {
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45);
}

/* Mobile search trigger (Airbnb-style) */
.home-search-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 14px 20px;
  border: 1px solid #DDDDDD;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
}

.home-search-trigger i {
  font-size: 18px;
  color: var(--text-light);
}

.home-search-trigger-text {
  color: #717171;
  font-weight: 500;
}

.home-search-trigger:active {
  transform: scale(0.99);
}

/* Full-screen mobile search modal */
.home-search-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: #fff;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.home-search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.home-search-modal-shell {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.home-search-modal-top {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 56px 16px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.home-search-modal-tabs {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 420px;
  padding: 4px;
  border-radius: 16px;
  background: var(--light);
  border: 1px solid var(--border);
}

.home-search-modal-tab {
  display: flex;
  flex: 1;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-light);
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.home-search-modal-tab:active {
  transform: scale(0.98);
}

.home-search-modal-tab-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-light);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.home-search-modal-tab.is-active {
  background: #fff;
  color: var(--dark);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.1);
}

.home-search-modal-tab.is-active .home-search-modal-tab-icon {
  background: var(--primary-soft);
  border-color: rgba(31, 110, 115, 0.25);
  color: var(--primary);
}

.home-search-modal-tab--tenant.is-active .home-search-modal-tab-icon {
  background: var(--tenant-soft);
  border-color: rgba(139, 92, 246, 0.25);
  color: var(--tenant);
}

.home-search-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #EBEBEB;
  border-radius: 50%;
  background: #fff;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.home-search-modal-close:hover {
  background: #F7F7F7;
}

.home-search-modal-close:active {
  transform: scale(0.96);
  background: #EBEBEB;
}

.home-search-modal-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  padding: 8px 20px 16px;
}

/* Mobile quick filters — flat panel in search modal */
.home-mobile-quick-filters {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.home-mobile-filter-section {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 0;
  border-bottom: 1px solid #EBEBEB;
}

.home-mobile-filter-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.home-mobile-filter-sub {
  margin: -8px 0 0;
  font-size: 13px;
  color: #717171;
}

.home-price-slider-summary {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
}

.home-price-slider {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.home-price-slider-track {
  position: relative;
  height: 36px;
}

.home-price-slider-track::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #EBEBEB;
}

.home-price-slider-range {
  position: absolute;
  top: 50%;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-900) 100%);
  pointer-events: none;
}

.home-price-slider-track input[type='range'] {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 36px;
  margin: 0;
  padding: 0;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.home-price-slider-track input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border: 2px solid #222;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-price-slider-track input[type='range']::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border: 2px solid #222;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.home-price-slider-track input[type='range']::-webkit-slider-runnable-track,
.home-price-slider-track input[type='range']::-moz-range-track {
  background: transparent;
  border: none;
}

.home-price-slider-track input[type='range']:first-of-type {
  z-index: 3;
}

.home-price-slider-track input[type='range']:last-of-type {
  z-index: 4;
}

.home-price-slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  color: #717171;
}

.home-search-segment-panel-inner .home-price-slider-summary {
  margin: 0 0 8px;
}

.home-search-segment-panel-inner .home-price-slider {
  margin-top: 4px;
}

.home-mobile-select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #DDDDDD;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256' fill='%2364748B'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.home-mobile-price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.home-mobile-price-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.home-mobile-price-field span {
  font-size: 12px;
  font-weight: 700;
  color: #717171;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-mobile-price-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #DDDDDD;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
}

.home-when-options--mobile {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.home-when-options--mobile .home-when-option {
  width: 100%;
  text-align: center;
  border-radius: 14px;
  padding: 12px 10px;
}

.home-mobile-date-field[hidden],
.home-date-field[hidden] {
  display: none !important;
}

.home-mobile-date-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.home-mobile-date-field span {
  font-size: 13px;
  font-weight: 600;
  color: #717171;
}

.home-mobile-date-field input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid #DDDDDD;
  border-radius: 14px;
  font: inherit;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
}

.home-mobile-quick-filters .home-filters-cards,
.home-mobile-quick-filters .home-filters-section {
  margin: 0;
  padding: 22px 0;
  gap: 14px;
  border-bottom: 1px solid #EBEBEB;
}

.home-mobile-quick-filters .home-filters-section h3 {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.home-mobile-quick-filters .home-filters-recommended,
.home-mobile-quick-filters .home-filters-recommended--wrap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.home-filters-modal .home-location-chips,
.home-mobile-quick-filters .home-location-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.home-filters-modal .home-location-chip,
.home-mobile-quick-filters .home-location-chip {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.home-filters-modal-body > .home-filters-section:first-child,
.home-filters-modal-body > [id$="Mount"]:first-child > :first-child,
.home-mobile-quick-filters > :first-child {
  padding-top: 16px;
}

.home-search-modal-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #EBEBEB;
  margin-top: -1px;
  background: #fff;
}

.home-search-modal-clear {
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  text-decoration: underline;
  cursor: pointer;
  padding: 8px 0;
}

.home-search-modal-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-900) 100%);
  color: #fff;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(31, 110, 115, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-search-modal-submit:active {
  transform: scale(0.98);
}

body.home-search-modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden;
}

/* Add modal (mobile intro to create listing/offer) */
.home-add-modal-top {
  justify-content: flex-end;
  padding: 14px 12px 0;
  min-height: 58px;
  border-bottom: none;
}

.home-add-modal-body {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-top: 8px;
}

.home-add-modal-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--dark);
  text-align: center;
  margin: 0 0 28px;
}

.home-add-choices {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-add-choice {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 22px 20px;
  border: 1px solid #EBEBEB;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.home-add-choice:active {
  transform: scale(0.99);
}

.home-add-choice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  min-width: 64px;
  border-radius: 18px;
  font-size: 32px;
  line-height: 1;
}

.home-add-choice--offer .home-add-choice-icon {
  background: linear-gradient(135deg, #FFF7ED 0%, #FFFBF5 100%);
  color: #C56A12;
  border: 1px solid rgba(230, 142, 44, 0.22);
}

.home-add-choice--listing .home-add-choice-icon {
  background: var(--tenant-soft);
  color: var(--tenant-dark);
  border: 1px solid rgba(139, 92, 246, 0.22);
}

.home-add-choice-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.home-add-choice-label {
  font-size: 17px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.home-add-choice-desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-light);
}

.home-add-choice--offer:active,
.home-add-choice--offer:focus-visible {
  border-color: rgba(230, 142, 44, 0.45);
  box-shadow: 0 4px 18px rgba(230, 142, 44, 0.12);
}

.home-add-choice--listing:active,
.home-add-choice--listing:focus-visible {
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: 0 4px 18px rgba(139, 92, 246, 0.12);
}

.home-add-modal-footer {
  justify-content: center;
  border-top: none;
  padding-top: 8px;
}

.home-add-modal-cancel {
  border: none;
  background: none;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #717171;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 8px;
  transition: color 0.2s ease, background 0.2s ease;
}

.home-add-modal-cancel:active {
  background: #F7F7F7;
  color: var(--dark);
}

@supports (-webkit-touch-callout: none) {
  .home-search-modal {
    height: -webkit-fill-available;
    max-height: -webkit-fill-available;
  }
}

/* Modal accordion form layout */
.home-search.home-search--modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  max-width: none;
  overflow: visible;
}

.home-search--modal .home-search-segment {
  flex: none;
  padding: 0;
  border: 1px solid #EBEBEB;
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.home-search--modal .home-search-segment:not(:last-of-type)::after {
  display: none;
}

.home-search--modal .home-search-segment.is-expanded {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.home-search--modal .home-search-segment-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.home-search--modal .home-search-segment.is-expanded .home-search-segment-toggle {
  display: none;
}

.home-search--modal .home-search-segment:not(.is-expanded) .home-search-segment-toggle-label {
  font-size: 14px;
  font-weight: 400;
  color: #717171;
}

.home-search--modal .home-search-segment:not(.is-expanded) .home-search-segment-toggle-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
}

.home-search--modal .home-search-segment-panel {
  display: block;
}

.home-search--modal .home-search-segment:not(.is-expanded) .home-search-segment-panel {
  display: none;
}

.home-search--modal .home-search-segment-panel-inner {
  display: block;
  padding: 24px 24px 28px;
}

.home-search--modal .home-search-segment:not(.is-expanded) .home-search-segment-toggle {
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  padding-right: 44px;
}

.home-search--modal .home-search-segment:not(.is-expanded) .home-search-segment-toggle::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid #717171;
  border-bottom: 2px solid #717171;
  transform: translateY(-50%) rotate(-45deg);
}

.home-search--modal .home-search-segment-title {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.home-search--modal .home-search-segment-title::before {
  content: '← ';
  font-weight: 700;
  color: #717171;
  font-size: 18px;
}

.home-search--modal .home-search-segment[hidden] {
  display: none !important;
}

.home-search--modal .home-search-segment-label {
  display: none;
}

.home-search--modal .home-search-segment select,
.home-search--modal .home-search-segment input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #B0B0B0;
  border-radius: 12px;
  font-size: 16px;
  color: var(--dark);
  background: #fff;
}

.home-search--modal .home-search-segment select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 256 256' fill='%2364748B'%3E%3Cpath d='M213.66,101.66l-80,80a8,8,0,0,1-11.32,0l-80-80A8,8,0,0,1,53.66,90.34L128,164.69l74.34-74.35a8,8,0,0,1,11.32,11.32Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.home-search--modal .home-search-btn-wrap {
  display: none;
}

/* Panels */
.home-panel {
  display: none;
}

.home-panel.is-active {
  display: block;
}

body.home-landing-browse .home-panel.is-active {
  display: block;
}

.home-panel--landing-secondary {
  margin-top: 36px;
}

.home-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.home-panel-head h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.home-panel-head h2 em {
  font-style: normal;
  color: var(--primary);
}

.home-panel-title--action {
  cursor: pointer;
  transition: color 0.15s ease;
}

.home-panel-title--action:hover,
.home-panel-title--action:focus-visible {
  color: var(--primary);
  outline: none;
}

.home-panel-title--action:hover em,
.home-panel-title--action:focus-visible em {
  color: var(--primary-900);
}

.home-panel-head p {
  font-size: 14px;
  color: var(--text-light);
}

.home-listings-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 22px;
}

@media (min-width: 640px) {
  .home-listings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .home-listings-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .home-listings-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.home-panel .marketplace-limit-note {
  margin-top: 28px;
  text-align: center;
}

.home-panel .lm-pagination {
  margin-top: 28px;
}

/* Mobile: compact search trigger + modal */
@media (max-width: 860px) {
  .home-free-badge {
    display: none;
  }

  .home-intro-desktop {
    display: none;
  }

  .home-intro-mobile {
    display: block;
  }

  .home-search-mobile-bar {
    display: flex;
  }

  .home-search-trigger {
    display: flex;
    flex: 1;
    margin: 0;
  }

  .home-add-trigger {
    display: flex;
  }

  .home-search-wrap > .home-search-bar-row .home-search:not(.home-search--modal),
  .home-search-bar-row .home-filters-btn {
    display: none;
  }

  .home-search-wrap > .home-search-mobile-bar {
    display: flex;
    width: 100%;
  }

  .home-filter-chips {
    max-width: 100%;
    margin-top: 4px;
  }

  .home-categories {
    display: none;
  }

  .home-tab-label--long {
    display: none;
  }

  .home-tab-label--short {
    display: inline;
  }

  .home-search-modal-tab .home-tab-label--long {
    display: none;
  }

  .home-search-modal-tab .home-tab-label--short {
    display: inline;
  }

  .home-search-wrap {
    margin-bottom: 20px;
  }

  .home-listings-grid--browse {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 4px 16px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .home-listings-grid--browse::-webkit-scrollbar {
    display: none;
  }

  .home-listings-grid--browse .listing-card {
    flex: 0 0 min(280px, 72vw);
    scroll-snap-align: start;
    border-radius: 16px;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  .home-listings-grid--browse .listing-card:hover {
    transform: none;
    box-shadow: none;
  }

  .home-listings-grid--browse .listing-card-image-wrap {
    border-radius: 16px;
    overflow: hidden;
  }

  .home-listings-grid--browse .listing-card-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .home-listings-grid--browse .listing-card-body {
    padding: 10px 2px 0;
    gap: 4px;
  }

  .home-listings-grid--browse .listing-card-title {
    font-size: 15px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .home-listings-grid--browse .listing-card-subtitle {
    font-size: 13px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .home-listings-grid--browse .listing-card-price {
    font-size: 15px;
    margin-top: 2px;
  }

  .home-listings-grid--browse .listing-score-container {
    padding: 8px 10px;
    gap: 8px;
    margin-bottom: 2px;
  }

  .home-listings-grid--browse .listing-score-compact .listing-score-circle {
    width: 42px;
    height: 42px;
  }

  .home-listings-grid--browse .listing-score-title,
  .home-listings-grid--browse .listing-score-subtitle {
    font-size: 11px;
  }

  .home-listings-grid--browse .listing-card-desc,
  .home-listings-grid--browse .listing-card-actions,
  .home-listings-grid--browse .listing-card-meta,
  .home-listings-grid--browse .listing-card-teaser {
    display: none;
  }

  .home-listings-grid--browse .listing-image-badge {
    font-size: 10px;
    padding: 4px 8px;
  }

  .home-listings-grid--browse .listings-loading,
  .home-listings-grid--browse .listings-empty {
    flex: 0 0 100%;
    min-width: 100%;
  }

  .home-panel-head {
    margin-bottom: 14px;
  }

  .home-panel-head h2 {
    font-size: 18px;
  }

  .home-panel-head p {
    font-size: 13px;
  }

  .home-panel--landing-secondary {
    margin-top: 28px;
  }
}

@media (max-width: 860px) {
  .home-filters-modal {
    align-items: flex-end;
    padding: 0;
  }

  .home-filters-modal-shell {
    width: 100%;
    max-height: 92vh;
    border-radius: 24px 24px 0 0;
  }
}

@media (max-width: 640px) {
  .home-wrap {
    padding: 0 16px;
  }

  .home-main {
    padding-top: 16px;
  }

  .home-intro h1 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .home-search-modal-tab {
    font-size: 12px;
    gap: 6px;
    padding: 9px 8px;
  }

  .home-search-modal-tab-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 18px;
  }

  .home-filters-recommended,
  .home-filters-recommended--wrap,
  .home-type-segments--modal,
  .home-type-segments--mobile,
  .home-filters-modal .home-location-chips,
  .home-mobile-quick-filters .home-location-chips {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
