/* @mysites/mls */
.mls-spa-mount .search-shell,
.search-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  flex: 1;
  min-height: 0;
  background: #f8fafc;
}
.mls-spa-mount .search-shell__toolbar,
.search-shell__toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}
.mls-spa-mount .search-shell__form,
.search-shell__form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  flex: 1;
  min-width: 0;
}
.mls-spa-mount .search-shell__form-row,
.search-shell__form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
}
.mls-spa-mount .search-shell__form-row--primary,
.search-shell__form-row--primary {
  flex: 1;
  min-width: 0;
}
.mls-spa-mount .search-shell__filters,
.search-shell__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  width: 100%;
}
@media (max-width: 879px) {
  .mls-spa-mount .search-shell__filters,
  .search-shell__filters {
    display: none;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
    margin-top: 0.25rem;
  }
  .mls-spa-mount .search-shell__filters--open,
  .search-shell__filters--open {
    display: flex;
  }
}
.mls-spa-mount .search-shell__filter-dropdown,
.search-shell__filter-dropdown {
  position: relative;
}
.mls-spa-mount .search-shell__filter-btn,
.search-shell__filter-btn {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  white-space: nowrap;
}
.mls-spa-mount .search-shell__filter-btn:hover,
.search-shell__filter-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}
.mls-spa-mount .search-shell__filter-btn:focus,
.search-shell__filter-btn:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.mls-spa-mount .search-shell__filter-buttons,
.search-shell__filter-buttons {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}
.mls-spa-mount .search-shell__filter-buttons::-webkit-scrollbar,
.search-shell__filter-buttons::-webkit-scrollbar {
  height: 4px;
}
.mls-spa-mount .search-shell__filter-buttons::-webkit-scrollbar-thumb,
.search-shell__filter-buttons::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 2px;
}
.mls-spa-mount .search-shell__filter-buttons-label,
.search-shell__filter-buttons-label {
  font-size: 0.85rem;
  color: #64748b;
  margin-right: 0.25rem;
  flex-shrink: 0;
}
.mls-spa-mount .search-shell__filter-option,
.search-shell__filter-option {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  flex-shrink: 0;
  white-space: nowrap;
}
.mls-spa-mount .search-shell__filter-option:hover,
.search-shell__filter-option:hover {
  background: #f1f5f9;
}
.mls-spa-mount .search-shell__filter-option--active,
.search-shell__filter-option--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.mls-spa-mount .search-shell__filter-advanced,
.search-shell__filter-advanced {
  position: relative;
}
.mls-spa-mount .search-shell__advanced-panel,
.search-shell__advanced-panel {
  margin-top: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  width: 100%;
}
.mls-spa-mount .search-shell__advanced-title,
.search-shell__advanced-title {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.mls-spa-mount .search-shell__advanced-checkboxes,
.search-shell__advanced-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  max-height: 180px;
  overflow-y: auto;
}
.mls-spa-mount .search-shell__advanced-range,
.search-shell__advanced-range {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.mls-spa-mount .search-shell__advanced-range label,
.search-shell__advanced-range label {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: #475569;
}
.mls-spa-mount .search-shell__advanced-range .search-shell__input--number,
.search-shell__advanced-range .search-shell__input--number {
  max-width: 5rem;
}
@media (min-width: 880px) {
  .mls-spa-mount .search-shell__filters-toggle,
  .search-shell__filters-toggle {
    display: none;
  }
}
.mls-spa-mount .search-shell__search-wrap,
.search-shell__search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 280px;
}
.mls-spa-mount .search-shell__search-wrap--wide,
.search-shell__search-wrap--wide {
  flex: 3;
  min-width: 240px;
  max-width: 640px;
}
.mls-spa-mount .search-shell__search-icon,
.search-shell__search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  pointer-events: none;
}
.mls-spa-mount .search-shell__input,
.search-shell__input {
  width: 100%;
  padding: 0.5rem 0.75rem 0.5rem 2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
}
.mls-spa-mount .search-shell__input--number,
.search-shell__input--number {
  min-width: 5rem;
  max-width: 6rem;
  padding-left: 0.75rem;
}
.mls-spa-mount .search-shell__select,
.search-shell__select {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
  min-width: 0;
}
.mls-spa-mount .search-shell__btn,
.search-shell__btn {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #f1f5f9;
  color: #334155;
}
.mls-spa-mount .search-shell__btn--primary,
.search-shell__btn--primary {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}
.mls-spa-mount .search-shell__btn--primary:hover,
.search-shell__btn--primary:hover {
  background: #2563eb;
}
.mls-spa-mount .search-shell__auth,
.search-shell__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mls-spa-mount .search-shell__login,
.search-shell__login {
  padding: 0.5rem 0.75rem;
  color: #3b82f6;
  font-size: 0.9rem;
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}
.mls-spa-mount .search-shell__login:hover,
.search-shell__login:hover {
  text-decoration: underline;
}
.mls-spa-mount .search-shell__body,
.search-shell__body {
  display: grid;
  grid-template-columns: minmax(300px, 60%) minmax(280px, 1fr);
  flex: 1;
  min-height: 0;
  gap: 0;
}
@media (max-width: 767px) {
  .mls-spa-mount .search-shell__body,
  .search-shell__body {
    grid-template-columns: 1fr;
  }
}
.mls-spa-mount .search-shell__map,
.search-shell__map {
  position: relative;
  min-height: 240px;
  order: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mls-spa-mount .search-shell__map--draw-mode .search-shell__map-inner,
.search-shell__map--draw-mode .search-shell__map-inner {
  cursor: crosshair;
}
.mls-spa-mount .search-shell__map-toolbar,
.search-shell__map-toolbar {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 1200;
  display: flex;
  gap: 0.5rem;
  pointer-events: none;
}
.mls-spa-mount .search-shell__map-toolbar > *,
.search-shell__map-toolbar > * {
  pointer-events: auto;
}
.mls-spa-mount .search-shell__map-toolbar-btn,
.search-shell__map-toolbar-btn {
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  white-space: nowrap;
}
.mls-spa-mount .search-shell__map-toolbar-btn--hidden,
.search-shell__map-toolbar-btn--hidden {
  display: none !important;
}
.mls-spa-mount .search-shell__map-toolbar-btn--active,
.search-shell__map-toolbar-btn--active {
  background-color: #2563eb;
  border-color: #2563eb;
  color: #fff;
}
.mls-spa-mount .search-shell__map-toolbar-btn--active:hover,
.search-shell__map-toolbar-btn--active:hover {
  background-color: #1d4ed8;
  border-color: #1d4ed8;
}
.mls-spa-mount .search-shell__list,
.search-shell__list {
  display: flex;
  flex-direction: column;
  min-height: 240px;
  order: 1;
  min-height: 0;
  border-left: 1px solid #e2e8f0;
  background: #fff;
}
@media (max-width: 767px) {
  .mls-spa-mount .search-shell__list,
  .search-shell__list {
    border-left: 0;
    border-top: 1px solid #e2e8f0;
  }
}
.mls-spa-mount .search-shell__list-header,
.search-shell__list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mls-spa-mount .search-shell__list-header-counts,
.search-shell__list-header-counts {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.mls-spa-mount .search-shell__total,
.search-shell__total {
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
}
.mls-spa-mount .search-shell__range,
.search-shell__range {
  font-size: 0.8rem;
  color: #64748b;
  display: none;
}
.mls-spa-mount .search-shell__range--visible,
.search-shell__range--visible {
  display: block;
}
.mls-spa-mount .search-shell__sort,
.search-shell__sort {
  padding: 0.35rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 0.85rem;
  background: #fff;
}
.mls-spa-mount .search-shell__list-inner,
.search-shell__list-inner {
  flex: 1;
  overflow: auto;
  padding: 0.5rem 1rem;
}
.mls-spa-mount .search-shell__map-inner,
.search-shell__map-inner {
  flex: 1;
  min-height: 200px;
  background: #e2e8f0;
  border-radius: 0;
}
.mls-spa-mount .search-shell__placeholder,
.search-shell__placeholder {
  color: #475569;
  font-size: 0.9rem;
  margin: 0;
}
.mls-spa-mount .search-shell__loading,
.search-shell__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem 1rem;
}
.mls-spa-mount .search-shell__loading--skeleton,
.search-shell__loading--skeleton {
  padding: 0.5rem 0;
  align-items: stretch;
}
.mls-spa-mount .search-shell__load-more,
.search-shell__load-more {
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.mls-map-pin {
  border: none !important;
  background: transparent !important;
  display: flex !important;
  align-items: center;
  gap: 2px;
}
.mls-map-pin__label {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #1e40af;
  border-radius: 4px;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  pointer-events: auto;
}
.mls-map-pin__new {
  font-size: 0.5rem;
  color: #16a34a;
  line-height: 1;
}
.mls-map-pin--new .mls-map-pin__label {
  background: #15803d;
}

.mls-map-popover-wrap .leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 0;
  overflow: hidden;
}

.mls-map-popover-wrap .leaflet-popup-content {
  margin: 0;
  min-width: 280px;
  max-width: 320px;
}

.mls-map-popover-wrap--error .leaflet-popup-content-wrapper {
  border-left: 4px solid var(--mls-map-popover-error-accent, #dc2626);
}

.mls-map-popover-error {
  padding: 1.25rem 1rem;
  text-align: center;
  background: linear-gradient(180deg, #fef2f2 0%, #fff 100%);
}
.mls-map-popover-error__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--mls-map-popover-error-accent, #dc2626);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.mls-map-popover-error__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.35rem;
}
.mls-map-popover-error__text {
  font-size: 0.8125rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

.mls-map-popover__photo-wrap {
  position: relative;
  aspect-ratio: 16/10;
  background: #e2e8f0;
  line-height: 0;
}
.mls-map-popover__photo-link {
  display: block;
  width: 100%;
  height: 100%;
}
.mls-map-popover__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mls-map-popover__photo {
  position: relative;
  aspect-ratio: 16/10;
  background: #e2e8f0;
  line-height: 0;
}
.mls-map-popover__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mls-map-popover__days {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
}
.mls-map-popover__fav {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 2;
}
.mls-map-popover__fav:hover {
  background: #fff;
  color: #64748b;
}
.mls-map-popover__fav--active {
  color: #dc2626;
}
.mls-map-popover__fav svg, .mls-map-popover__fav-icon {
  width: 1.1rem;
  height: 1.1rem;
}
.mls-map-popover__status {
  position: absolute;
  top: 0.35rem;
  left: 0.35rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
}
.mls-map-popover__price {
  font-weight: 700;
  font-size: 1rem;
  color: #0f172a;
  padding: 0.5rem 0.75rem 0.25rem;
}
.mls-map-popover__meta {
  font-size: 0.8rem;
  color: #475569;
  padding: 0 0.75rem;
}
.mls-map-popover__address {
  font-size: 0.85rem;
  color: #334155;
  padding: 0 0.75rem;
  line-height: 1.35;
}
.mls-map-popover__mls {
  font-size: 0.7rem;
  color: #64748b;
  padding: 0 0.75rem;
}
.mls-map-popover__brokerage {
  font-size: 0.75rem;
  color: #64748b;
  padding: 0 0.75rem 0.5rem;
}
.mls-map-popover__link {
  display: block;
  text-align: center;
  padding: 0.5rem 0.75rem;
  margin: 0 0.75rem 0.75rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}
.mls-map-popover__link:hover {
  background: #2563eb;
}

.search-shell__loading-spinner {
  width: 2rem;
  height: 2rem;
  border: 2px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: search-shell-spin 0.7s linear infinite;
}
.search-shell__error {
  padding: 1.5rem 1rem;
  text-align: center;
}
.search-shell__error-text {
  margin: 0 0 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}
.search-shell__pagination {
  display: none;
  padding: 0.5rem 1rem;
  border-top: 1px solid #e2e8f0;
  background: #fafafa;
  flex-shrink: 0;
}
.search-shell__pagination--visible {
  display: block;
}
.search-shell__pagination-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.search-shell__pagination-range {
  font-size: 0.85rem;
  color: #64748b;
}
.search-shell__pagination-btns {
  display: flex;
  gap: 0.5rem;
}
.search-shell__pagination-prev:disabled, .search-shell__pagination-next:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.search-shell__disclaimers {
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  display: none;
}
.search-shell__disclaimers--visible {
  display: block;
}
.search-shell__disclaimer-item {
  margin: 0.5rem 0;
}
.search-shell__disclaimer-item:first-child {
  margin-top: 0;
}
.search-shell__form-disclaimer-in-list {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  margin-top: 0;
  margin-bottom: 0;
}
.search-shell__form-disclaimer-in-list p {
  margin: 0.25rem 0;
}
.search-shell__form-disclaimer-in-list p:first-child {
  margin-top: 0;
}
.search-shell__form-disclaimer-in-list p:last-child {
  margin-bottom: 0;
}
.search-shell__form-disclaimer-in-list a {
  color: #475569;
}
.search-shell__back {
  background: transparent;
  border: 1px solid #94a3b8;
  border-radius: 6px;
  color: #334155;
  cursor: pointer;
  display: inline-block;
  font: inherit;
  margin-left: 0.75rem;
  padding: 0.35rem 0.6rem;
}
.search-shell__back:hover {
  background: #f1f5f9;
}
.search-shell .filter-popover {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1500;
  margin-top: 0.25rem;
  min-width: 220px;
  max-width: 320px;
  max-height: 70vh;
  overflow: auto;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 1rem;
}
.search-shell .filter-popover__title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}
.search-shell .filter-popover__list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  max-height: 240px;
  overflow-y: auto;
}
.search-shell .filter-popover__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
  cursor: pointer;
}
.search-shell .filter-popover__apply {
  width: 100%;
  margin-top: 0.25rem;
}
.search-shell .filter-popover--price {
  min-width: 280px;
}
.search-shell .filter-popover__slider-wrap {
  margin-bottom: 0.75rem;
}
.search-shell .filter-popover__slider-track {
  position: relative;
  height: 24px;
  margin: 0.5rem 0;
}
.search-shell .filter-popover__slider-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 6px;
  background: #3b82f6;
  border-radius: 3px;
  pointer-events: none;
}
.search-shell .filter-popover__slider {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  pointer-events: none;
}
.search-shell .filter-popover__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
}
.search-shell .filter-popover__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  pointer-events: auto;
}
.search-shell .filter-popover__slider--min {
  z-index: 2;
}
.search-shell .filter-popover__slider--max {
  z-index: 2;
}
.search-shell .filter-popover__range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 0.25rem;
}
.search-shell .filter-popover__inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.search-shell .filter-popover__input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #475569;
}
.search-shell .filter-popover__input {
  width: 5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font: inherit;
  font-size: 0.9rem;
}
.search-shell .filter-popover__input-sep {
  color: #94a3b8;
  font-weight: 500;
}

.mls-listing-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
@media (max-width: 639px) {
  .mls-listing-cards {
    grid-template-columns: 1fr;
  }
}

@keyframes search-shell-spin {
  to {
    transform: rotate(360deg);
  }
}
.mls-listing-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  display: grid;
  gap: 0.35rem;
  padding: 0;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.mls-listing-card:hover {
  border-color: #94a3b8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.mls-listing-card:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.mls-listing-card__photo {
  aspect-ratio: 16/10;
  background: #e2e8f0;
  line-height: 0;
  position: relative;
}
.mls-listing-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mls-listing-card__status {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.8rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  z-index: 1;
}
.mls-listing-card__favorite {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s, background 0.15s, transform 0.15s;
}
.mls-listing-card__favorite:hover {
  color: #dc2626;
  background: #fff;
}
.mls-listing-card__favorite:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.mls-listing-card__favorite[aria-busy=true] {
  pointer-events: none;
  opacity: 0.8;
}
.mls-listing-card__favorite--active {
  color: #dc2626;
}
.mls-listing-card__favorite--active .mls-listing-card__favorite-icon {
  fill: #dc2626;
  stroke: #dc2626;
}
.mls-listing-card__favorite-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: currentColor;
}
.mls-listing-card__price {
  font-weight: 700;
  font-size: 1.1rem;
  color: #0f172a;
  padding: 0 0.75rem;
  padding-top: 0.5rem;
}
.mls-listing-card__meta {
  font-size: 0.85rem;
  color: #475569;
  padding: 0 0.75rem;
}
.mls-listing-card__address {
  font-size: 0.9rem;
  color: #334155;
  padding: 0 0.75rem;
  line-height: 1.35;
}
.mls-listing-card__mls {
  font-size: 0.75rem;
  color: #64748b;
  padding: 0 0.75rem;
}
.mls-listing-card__brokerage {
  font-size: 0.8rem;
  color: #64748b;
  padding: 0 0.75rem 0.5rem;
}
.mls-listing-card__actions {
  padding: 0 0.75rem 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.mls-listing-card__note {
  padding: 0.25rem 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mls-listing-card__note:hover {
  background: #e2e8f0;
  color: #475569;
}
.mls-listing-card__note:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.mls-listing-card--skeleton {
  pointer-events: none;
  cursor: default;
}
.mls-listing-card__photo--skeleton, .mls-listing-card__price--skeleton, .mls-listing-card__meta--skeleton, .mls-listing-card__address--skeleton, .mls-listing-card__brokerage--skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: search-shell-shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
  min-height: 0.75rem;
}
.mls-listing-card__photo--skeleton {
  min-height: 0;
  aspect-ratio: 16/10;
}
.mls-listing-card__price--skeleton {
  width: 40%;
  margin: 0.5rem 0.75rem 0;
}
.mls-listing-card__meta--skeleton {
  width: 70%;
  margin: 0 0.75rem;
}
.mls-listing-card__address--skeleton {
  width: 85%;
  margin: 0 0.75rem;
}
.mls-listing-card__brokerage--skeleton {
  width: 50%;
  margin: 0 0.75rem 0.5rem;
}

@keyframes search-shell-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.auth-modal[aria-hidden=true], .auth-modal[hidden] {
  display: none;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.auth-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: #64748b;
}
.auth-modal__close::before, .auth-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.auth-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.auth-modal__close:hover {
  color: #334155;
  background: #f1f5f9;
}

.auth-modal__title {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.auth-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-modal__label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

.auth-modal__input {
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
}
.auth-modal__input:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.auth-modal__error {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #b91c1c;
  background: #fef2f2;
  display: none;
}
.auth-modal__error--visible {
  display: block;
}

.auth-modal__link {
  color: #3b82f6;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
  font-size: 0.9rem;
}
.auth-modal__link:hover {
  text-decoration: underline;
}
.auth-modal__link--forgot {
  margin-top: -0.25rem;
}
.auth-modal__link--switch {
  font-weight: 500;
}

.auth-modal__btn {
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  margin-top: 0.25rem;
}
.auth-modal__btn--primary {
  background: #3b82f6;
  color: #fff;
  border-color: #3b82f6;
}
.auth-modal__btn--primary:hover:not(:disabled) {
  background: #2563eb;
}
.auth-modal__btn--primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-modal__switch {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: #64748b;
}

.auth-modal__form-disclaimer {
  margin-top: 1rem;
  padding: 0.75rem 0;
  font-size: 0.75rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
}
.auth-modal__form-disclaimer p {
  margin: 0.35rem 0;
}
.auth-modal__form-disclaimer p:first-child {
  margin-top: 0;
}
.auth-modal__form-disclaimer p:last-child {
  margin-bottom: 0;
}
.auth-modal__form-disclaimer a {
  color: #475569;
}

.auth-modal__text {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: #475569;
}

.search-shell__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-shell__auth-guest,
.search-shell__auth-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.search-shell__login,
.search-shell__logout,
.search-shell__settings {
  white-space: nowrap;
}

.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.settings-modal[aria-hidden=true], .settings-modal[hidden] {
  display: none;
}

.settings-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.settings-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.settings-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: #64748b;
}
.settings-modal__close::before, .settings-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.settings-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.settings-modal__close:hover {
  color: #334155;
  background: #f1f5f9;
}

.settings-modal__title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #0f172a;
}

.settings-modal__section {
  margin-bottom: 1.5rem;
}

.settings-modal__heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #334155;
}

.settings-modal__hint {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: #64748b;
}

.settings-modal__saved-list {
  margin-bottom: 1rem;
  min-height: 2rem;
}

.settings-modal__item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.9rem;
}

.settings-modal__item-name {
  font-weight: 500;
  color: #0f172a;
}

.settings-modal__item-schedule {
  color: #64748b;
  font-size: 0.85rem;
}

.settings-modal__item-btn {
  margin-left: auto;
}

.settings-modal__add {
  margin-bottom: 1rem;
}

.settings-modal__form-wrap {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.settings-modal__subheading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.settings-modal__form .auth-modal__label {
  margin-bottom: 0;
}

.settings-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #334155;
}

.settings-modal__form-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.settings-modal__loading,
.settings-modal__empty,
.settings-modal__error {
  padding: 0.5rem 0;
  font-size: 0.9rem;
  color: #64748b;
}

.settings-modal__error {
  color: #b91c1c;
}

.note-modal {
  position: fixed;
  inset: 0;
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.note-modal[aria-hidden=true], .note-modal[hidden] {
  display: none;
}

.note-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.note-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  padding: 1.5rem;
}

.note-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  color: #64748b;
}
.note-modal__close::before, .note-modal__close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1rem;
  height: 2px;
  background: currentColor;
  transform: translate(-50%, -50%) rotate(45deg);
}
.note-modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.note-modal__close:hover {
  color: #334155;
  background: #f1f5f9;
}

.note-modal__title {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.note-modal__textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  resize: vertical;
  min-height: 5rem;
}
.note-modal__textarea:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

.note-modal__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.mls-detail-view {
  padding: 1rem;
  max-width: 56rem;
  margin: 0 auto;
}
.mls-detail-view__nav {
  margin-bottom: 1rem;
}
.mls-detail-view__back {
  color: #3b82f6;
  text-decoration: none;
  font-size: 0.95rem;
}
.mls-detail-view__back:hover {
  text-decoration: underline;
}
.mls-detail-view__back:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.mls-detail-view__content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mls-detail-view__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
  border-radius: 8px;
  overflow: hidden;
}
.mls-detail-view__gallery img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}
.mls-detail-view__gallery--grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 140px;
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .mls-detail-view__gallery--grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 160px;
  }
}
.mls-detail-view__gallery-item {
  overflow: hidden;
  border-radius: 6px;
}
.mls-detail-view__gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mls-detail-view__gallery-item--lead {
  grid-column: span 2;
  grid-row: span 2;
}
.mls-detail-view__disclaimers {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}
.mls-detail-view__disclaimers--visible {
  display: block;
}
.mls-detail-view__disclaimer-item {
  margin-bottom: 0.5rem;
}
.mls-detail-view__disclaimer-item:last-child {
  margin-bottom: 0;
}
.mls-detail-view__main {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.mls-detail-view__price {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}
.mls-detail-view__meta {
  margin: 0;
  color: #475569;
  font-size: 0.95rem;
}
.mls-detail-view__address {
  margin: 0;
  font-size: 1rem;
  color: #334155;
}
.mls-detail-view__mls, .mls-detail-view__type {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
}
.mls-detail-view__open-house {
  margin: 0;
  color: #15803d;
  font-weight: 500;
}
.mls-detail-view__description {
  margin-top: 0.5rem;
  line-height: 1.6;
  color: #334155;
}
.mls-detail-view__loading {
  color: #64748b;
}
.mls-detail-view__error {
  color: #b91c1c;
  margin: 0.5rem 0;
}

.mls-boundary-vertex {
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.mls-boundary-vertex:hover {
  transform: scale(1.35);
  filter: brightness(1.25);
}

.marker-cluster {
  background-color: rgba(59, 130, 246, 0.5);
  border: 2px solid #2563eb;
}
.marker-cluster div {
  background-color: #2563eb;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
}
.marker-cluster.marker-cluster-small {
  background-color: rgba(59, 130, 246, 0.4);
}
.marker-cluster.marker-cluster-small div {
  width: 28px;
  height: 28px;
  line-height: 26px;
}
.marker-cluster.marker-cluster-medium {
  background-color: rgba(59, 130, 246, 0.5);
}
.marker-cluster.marker-cluster-medium div {
  width: 36px;
  height: 36px;
  line-height: 34px;
}
.marker-cluster.marker-cluster-large {
  background-color: rgba(59, 130, 246, 0.6);
}
.marker-cluster.marker-cluster-large div {
  width: 44px;
  height: 44px;
  line-height: 42px;
  font-size: 0.85rem;
}

body:has(.mls-spa-mount),
body.has-mls-spa-mount {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

body:has(.mls-spa-mount) #main,
body.has-mls-spa-mount #main {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  padding: 0;
}

body:has(.mls-spa-mount) > *:not(#main),
body.has-mls-spa-mount > *:not(#main) {
  flex-shrink: 0;
}

body:has(.mls-spa-mount) #main > *,
body.has-mls-spa-mount #main > * {
  max-width: none !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body:has(.mls-spa-mount) [data-legal-placement=mls-disclaimer],
body.has-mls-spa-mount [data-legal-placement=mls-disclaimer] {
  display: none !important;
}

.mls-spa-mount {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: 100%;
}

.mls-spa-mount__root {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.mls-spa-mount__root > * {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
}

:root {
  --mls-spa-focus-outline: 2px solid var(--ms-color-accent, #3b82f6);
  --mls-spa-color-primary: var(--ms-color-primary, #5e214d);
  --mls-spa-color-surface: var(--ms-color-surface, #f8f8f8);
  --mls-spa-color-text: var(--ms-color-text, #1a1a1a);
  --mls-spa-color-danger: var(--ms-color-danger, #b91c1c);
  --mls-spa-radius: var(--ms-radius-base, 0.375rem);
  --mls-spa-font: var(--ms-font-body, system-ui, sans-serif);
}

[data-mls-spa-root] {
  position: relative;
  font-family: var(--mls-spa-font);
  color: var(--mls-spa-color-text);
}
[data-mls-spa-root][data-mls-spa-ready=true] {
  outline: 0;
}
[data-mls-spa-root]:focus-within {
  outline: var(--mls-spa-focus-outline);
  outline-offset: 2px;
}

.mls-spa-empty {
  border: 1px dashed rgba(100, 116, 139, 0.5);
  border-radius: 8px;
  color: #334155;
  font-size: 0.95rem;
  padding: 0.75rem;
}

.mls-spa-search-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 960px) {
  .mls-spa-search-shell {
    grid-template-columns: minmax(0, 1fr) 360px;
  }
}

.mls-spa-toolbar {
  display: grid;
  gap: 0.5rem;
}
.mls-spa-toolbar__meta {
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.75rem;
}

.mls-spa-search-input {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font: inherit;
  padding: 0.6rem 0.75rem;
  width: 100%;
}

.mls-spa-search-shell__map {
  min-height: 280px;
}

.mls-spa-map-placeholder {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #475569;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}

.mls-spa-listings {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.mls-spa-listing-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
}
.mls-spa-listing-card__address {
  color: #0f172a;
  font-weight: 600;
}
.mls-spa-listing-card__meta {
  color: #334155;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  gap: 0.6rem;
}

.mls-spa-registration-placeholder {
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  color: #1e3a8a;
  padding: 0.75rem;
}