/* Kojast Search page redesign.
 * Source-owned visual layer scoped to .search-page-v2.
 * Search behavior, ranking, filters, map and tracking remain unchanged.
 */

.search-page-v2 {
  --sp-page: #fffaf2;
  --sp-surface: #fffdf8;
  --sp-surface-strong: #ffffff;
  --sp-surface-soft: #fff7e8;
  --sp-border: #eadfce;
  --sp-border-strong: #dcc9ad;
  --sp-text: #172033;
  --sp-text-soft: #596579;
  --sp-text-muted: #7b8493;
  --sp-accent: #d97706;
  --sp-accent-strong: #b45309;
  --sp-accent-soft: #fff0cf;
  --sp-shadow: 0 18px 48px rgb(79 54 24 / 8%);
  --sp-shadow-hover: 0 22px 58px rgb(79 54 24 / 13%);
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 1.25rem 0 4.75rem;
  background: var(--sp-page);
  color: var(--sp-text);
}

.search-page-v2 > div,
.search-page-v2 > .search-results-shell {
  width: min(calc(100% - 2.5rem), 88rem);
  margin-inline: auto;
}

.search-page-v2 :where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--sp-accent);
  outline-offset: 3px;
}

/* Hero */
.search-page-v2 .search-page-hero {
  position: relative;
  z-index: 30;
  overflow: visible;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--sp-border);
  border-radius: 2rem;
  background:
    radial-gradient(circle at 88% 12%, rgb(245 158 11 / 10%), transparent 28%),
    linear-gradient(145deg, #fffdf8 0%, #fff7e8 100%);
  box-shadow: var(--sp-shadow);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.search-page-v2 .search-page-copy {
  max-width: 54rem;
}

.search-page-v2 .search-page-eyebrow {
  margin: 0 0 .8rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a16207;
  font-size: .76rem;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: .075em;
  text-transform: uppercase;
}

html[lang="fa"] .search-page-v2 .search-page-eyebrow {
  letter-spacing: 0;
  text-transform: none;
}

.search-page-v2 .search-page-title {
  max-width: 20ch;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.04em;
  text-wrap: balance;
}

html[lang="fa"] .search-page-v2 .search-page-title {
  line-height: 1.3;
  letter-spacing: 0;
}

.search-page-v2 .search-page-text {
  max-width: 48rem;
  min-height: 0;
  margin: 1rem 0 0;
  color: var(--sp-text-soft);
  font-size: clamp(.96rem, 1.4vw, 1.08rem);
  line-height: 1.85;
  text-wrap: pretty;
}

/* Search toolbar */
.search-page-v2 .search-toolbar {
  position: relative;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  margin-top: 1.45rem;
  padding: .6rem;
  border: 1px solid rgb(255 255 255 / 88%);
  border-radius: 1.4rem;
  background: rgb(255 255 255 / 78%);
  box-shadow: 0 14px 36px rgb(79 54 24 / 8%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: visible;
}

.search-page-v2 .search-toolbar-main,
.search-page-v2 .search-toolbar-city {
  position: relative;
  min-width: 0;
}

.search-page-v2 .search-toolbar-input {
  min-height: 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .55rem .9rem;
  border: 1px solid #e5ddd1;
  border-radius: 1rem;
  background: rgb(255 255 255 / 94%);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.search-page-v2 .search-toolbar-input:focus-within {
  border-color: rgb(217 119 6 / 55%);
  background: #fff;
  box-shadow: 0 0 0 3px rgb(245 158 11 / 9%);
}

.search-page-v2 .search-toolbar-label {
  margin: 0 0 .16rem;
  color: var(--sp-text-muted);
  font-size: .7rem;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: .06em;
  text-transform: uppercase;
}

html[lang="fa"] .search-page-v2 .search-toolbar-label {
  letter-spacing: 0;
  text-transform: none;
}

.search-page-v2 .search-toolbar-control {
  width: 100%;
  min-width: 0;
  height: 1.8rem;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sp-text);
  font: inherit;
  font-size: .96rem;
  font-weight: 650;
  box-shadow: none;
}

.search-page-v2 .search-toolbar-control::placeholder {
  color: #9a938a;
  opacity: 1;
  font-weight: 500;
}

.search-page-v2 .search-toolbar-button,
.search-page-v2 .search-location-button,
.search-page-v2 .search-filter-button {
  min-height: 4rem;
  border-radius: 1rem;
}

.search-page-v2 .search-toolbar-button {
  min-width: 8.5rem;
  border: 0;
  background: linear-gradient(135deg, #ffb223 0%, #f59e0b 100%);
  color: #111827;
  font-weight: 800;
  box-shadow: 0 12px 28px rgb(217 119 6 / 18%);
}

.search-page-v2 .search-toolbar-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgb(217 119 6 / 24%);
}

.search-page-v2 .search-location-button,
.search-page-v2 .search-filter-button {
  min-width: 4rem;
  width: 4rem;
  padding: 0;
  border: 1px solid var(--sp-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sp-surface-strong);
  color: var(--sp-text-soft);
  box-shadow: none;
}

.search-page-v2 .search-filter-button {
  border-color: rgb(217 119 6 / 22%);
  background: var(--sp-accent-soft);
}

.search-page-v2 .search-location-button:hover,
.search-page-v2 .search-filter-button:hover {
  border-color: rgb(217 119 6 / 42%);
  background: #fff8e7;
  transform: translateY(-1px);
}

.search-page-v2 :is(.search-location-button, .search-filter-button) img {
  width: 1.15rem;
  height: 1.15rem;
}

@media (min-width: 720px) {
  .search-page-v2 .search-toolbar {
    grid-template-columns: minmax(0, 1.25fr) minmax(13rem, .75fr) auto auto;
    align-items: stretch;
  }

  .search-page-v2 .search-toolbar-button {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1180px) {
  .search-page-v2 .search-toolbar {
    grid-template-columns: minmax(0, 1.45fr) minmax(13.5rem, .72fr) auto auto auto;
  }

  .search-page-v2 .search-toolbar-button {
    grid-column: auto;
  }
}

/* Autocomplete */
.search-page-v2 #search-autocomplete-results.ui-search-results {
  position: absolute !important;
  z-index: 120 !important;
  inset-inline: 0 !important;
  top: calc(100% + .5rem) !important;
  width: 100% !important;
  max-height: min(23rem, 58vh);
  overflow-y: auto;
  padding: .45rem !important;
  border: 1px solid var(--sp-border) !important;
  border-radius: 1.1rem !important;
  background: var(--sp-surface-strong) !important;
  box-shadow: 0 24px 58px rgb(15 23 42 / 18%) !important;
}

.search-page-v2 #search-autocomplete-results > a[data-autocomplete-select] {
  position: relative;
  display: block !important;
  padding: .72rem 2.4rem .72rem .8rem !important;
  border: 0 !important;
  border-radius: .8rem;
  color: var(--sp-text);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

html[dir="rtl"] .search-page-v2 #search-autocomplete-results > a[data-autocomplete-select] {
  padding: .72rem .8rem .72rem 2.4rem !important;
}

.search-page-v2 #search-autocomplete-results > a[data-autocomplete-select]::after {
  content: "→";
  position: absolute;
  inset-inline-end: .85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-accent-strong);
  font-size: .9rem;
  font-weight: 800;
}

html[dir="rtl"] .search-page-v2 #search-autocomplete-results > a[data-autocomplete-select]::after {
  content: "←";
}

.search-page-v2 #search-autocomplete-results > a[data-autocomplete-select]:hover,
.search-page-v2 #search-autocomplete-results > a[data-autocomplete-select].is-active {
  background: var(--sp-surface-soft) !important;
  color: var(--sp-text) !important;
}

.search-page-v2 #search-autocomplete-results > a[data-autocomplete-select] > div:first-child {
  overflow: hidden;
  color: var(--sp-text) !important;
  font-size: .9rem !important;
  font-weight: 750;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-page-v2 #search-autocomplete-results > a[data-autocomplete-select] > div:last-child {
  overflow: hidden;
  margin-top: .18rem !important;
  color: var(--sp-text-muted) !important;
  font-size: .75rem !important;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Main result layout */
.search-page-v2 > .search-results-shell {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

.search-page-v2 .search-results-main {
  min-width: 0;
}

@media (min-width: 1180px) {
  .search-page-v2 > .search-results-shell {
    grid-template-columns: minmax(18rem, 21rem) minmax(0, 1fr);
    align-items: start;
  }
}

/* Map */
.search-page-v2 .search-map-card {
  position: sticky;
  top: 1.25rem;
  padding: 1rem;
  border: 1px solid var(--sp-border);
  border-radius: 1.35rem;
  background: var(--sp-surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.search-page-v2 .search-sidebar-title {
  color: var(--sp-text);
  font-size: 1.05rem;
  font-weight: 800;
}

.search-page-v2 .search-map-text {
  margin-top: .2rem;
  color: var(--sp-text-muted);
  font-size: .8rem;
  line-height: 1.55;
}

.search-page-v2 .search-map-shell {
  margin-top: .85rem;
}

.search-page-v2 .search-map-canvas {
  height: 26rem;
  border: 1px solid var(--sp-border);
  border-radius: 1rem;
  background: #f6efe4;
}

@media (min-width: 1380px) {
  .search-page-v2 .search-map-canvas {
    height: 34rem;
  }
}

.search-page-v2 .search-map-empty {
  margin-top: .65rem;
  color: var(--sp-text-muted);
  font-size: .78rem;
  line-height: 1.5;
}

/* Results heading and active filters */
.search-page-v2 .search-results-head {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--sp-border);
  border-radius: 1.25rem;
  background: var(--sp-surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.search-page-v2 .search-results-title {
  margin: 0;
  color: var(--sp-text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -.025em;
}

html[lang="fa"] .search-page-v2 .search-results-title {
  letter-spacing: 0;
}

.search-page-v2 .search-results-subtitle,
.search-page-v2 .search-results-context {
  color: var(--sp-text-muted);
  font-size: .83rem;
  line-height: 1.6;
}

.search-page-v2 .search-results-subtitle {
  margin-top: .3rem;
  font-weight: 650;
}

.search-page-v2 .search-results-context {
  margin-top: .12rem;
  color: var(--sp-text-soft);
}

.search-page-v2 .search-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.search-page-v2 .search-filter-chip {
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .3rem .65rem;
  border: 1px solid rgb(217 119 6 / 18%);
  border-radius: 999px;
  background: var(--sp-surface-soft);
  color: #8b5e1c;
  font-size: .76rem;
  font-weight: 750;
  text-decoration: none;
}

.search-page-v2 .search-filter-chip:hover {
  border-color: rgb(217 119 6 / 36%);
  background: var(--sp-accent-soft);
  color: var(--sp-accent-strong);
}

@media (min-width: 720px) {
  .search-page-v2 .search-results-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .search-page-v2 .search-active-filters {
    justify-content: flex-end;
  }
}

/* Result cards */
.search-page-v2 .search-result-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  margin-top: .9rem;
}

@media (min-width: 760px) {
  .search-page-v2 .search-result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.search-page-v2 .search-result-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--sp-border);
  border-radius: 1.2rem;
  background: var(--sp-surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.search-page-v2 .search-result-card:hover {
  transform: translateY(-2px);
  border-color: rgb(217 119 6 / 32%);
  background: #fffefa;
  box-shadow: var(--sp-shadow-hover);
}

.search-page-v2 .search-result-card.is-map-active {
  border-color: rgb(217 119 6 / 55%);
  box-shadow: 0 0 0 2px rgb(245 158 11 / 14%);
}

.search-page-v2 .search-result-link {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 0;
  color: inherit;
  text-decoration: none;
}

.search-page-v2 .search-result-media {
  position: relative;
  flex: 0 0 auto;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: linear-gradient(145deg, #fff3d8, #f7ead2);
}

.search-page-v2 .search-result-image,
.search-page-v2 .search-result-fallback {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

.search-page-v2 .search-result-image {
  object-fit: cover;
  transition: transform .28s ease;
}

.search-page-v2 .search-result-card:hover .search-result-image {
  transform: scale(1.025);
}

.search-page-v2 .search-result-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff3d8, #f7ead2);
}

.search-page-v2 .search-result-fallback-logo {
  width: 3.25rem;
  height: 3.25rem;
  object-fit: contain;
}

.search-page-v2 .search-result-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: .95rem 1rem 1rem;
}

.search-page-v2 .search-result-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .55rem;
}

.search-page-v2 .search-result-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}

.search-page-v2 .search-result-badge {
  min-height: 1.55rem;
  display: inline-flex;
  align-items: center;
  padding: .2rem .5rem;
  border-radius: 999px;
  background: var(--sp-surface-soft);
  color: #8b5e1c;
  font-size: .68rem;
  font-weight: 750;
  line-height: 1.2;
}

.search-page-v2 .search-result-badge-premium {
  background: var(--sp-accent-soft);
  color: #92400e;
}

.search-page-v2 .search-result-badge-verified {
  background: #ecfdf5;
  color: #047857;
}

.search-page-v2 .search-result-rating {
  min-height: 1.7rem;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .22rem .5rem;
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  background: #fff;
  color: var(--sp-text);
  font-size: .76rem;
  font-weight: 800;
  box-shadow: none;
}

.search-page-v2 .search-result-rating::before {
  content: "★";
  color: #f59e0b;
  font-size: .72rem;
}

.search-page-v2 .search-result-rating small {
  color: var(--sp-text-muted);
  font-size: .66rem;
  font-weight: 600;
}

.search-page-v2 .search-result-title {
  margin: .65rem 0 0;
  color: var(--sp-text);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
}

.search-page-v2 .search-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .28rem .65rem;
  margin-top: .35rem;
  color: var(--sp-text-muted);
  font-size: .77rem;
  font-weight: 600;
  line-height: 1.4;
}

.search-page-v2 .search-result-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-top: .6rem;
}

.search-page-v2 .search-result-trust-item {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  background: #fff;
}

.search-page-v2 .search-result-trust-icon {
  width: .9rem;
  height: .9rem;
  object-fit: contain;
}

.search-page-v2 .search-result-address {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin-top: .48rem;
  color: var(--sp-text-soft);
  font-size: .78rem;
  line-height: 1.5;
}

.search-page-v2 .search-result-cta {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  width: fit-content;
  margin-top: auto;
  padding-top: .75rem;
  color: var(--sp-accent-strong);
  font-size: .78rem;
  font-weight: 800;
}

.search-page-v2 .search-result-cta::after {
  content: "→";
  font-size: .85rem;
}

html[dir="rtl"] .search-page-v2 .search-result-cta::after {
  content: "←";
}

/* Filter drawer */
.search-page-v2 ~ * .search-filter-modal,
.search-filter-modal.search-page-v2-filter {
  background: #fffdf8;
}

.search-filter-modal {
  border-color: var(--sp-border, #eadfce) !important;
  background: #fffdf8 !important;
  box-shadow: 0 28px 70px rgb(15 23 42 / 22%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.search-filter-modal .search-filter-modal-head {
  margin-top: .25rem;
  padding-bottom: .8rem;
  border-bottom: 1px solid #eadfce;
}

.search-filter-modal .search-filter-close {
  border: 1px solid #eadfce;
  background: #fff;
  color: #596579;
}

.search-filter-modal .search-select-field span {
  color: #596579;
  font-size: .78rem;
  font-weight: 750;
}

.search-filter-modal .search-select-control,
.search-filter-modal .search-check {
  border: 1px solid #eadfce;
  border-radius: .9rem;
  background: #fff;
  color: #172033;
  box-shadow: none;
}

.search-filter-modal .search-select-control:focus {
  border-color: rgb(217 119 6 / 55%);
  box-shadow: 0 0 0 3px rgb(245 158 11 / 9%);
}

.search-filter-modal .search-sidebar-reset {
  color: #b45309;
  font-weight: 750;
}

/* Empty/recovery/content */
.search-page-v2 .search-empty-state {
  margin-top: .9rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--sp-border);
  border-radius: 1.4rem;
  background: var(--sp-surface);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.search-page-v2 .search-empty-title {
  color: var(--sp-text);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  font-weight: 800;
}

.search-page-v2 .search-empty-text {
  max-width: 44rem;
  margin-top: .55rem;
  color: var(--sp-text-soft);
  font-size: .92rem;
  line-height: 1.75;
}

.search-page-v2 .search-empty-actions {
  gap: .6rem;
  margin-top: 1rem;
}

.search-page-v2 .search-empty-action-secondary {
  min-height: 3rem;
  padding: .65rem 1rem;
  border: 1px solid var(--sp-border);
  border-radius: .85rem;
  background: #fff;
  color: var(--sp-text-soft);
  box-shadow: none;
}

.search-page-v2 .search-empty-heading {
  color: #a16207;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .06em;
}

html[lang="fa"] .search-page-v2 .search-empty-heading {
  letter-spacing: 0;
}

.search-page-v2 .search-recovery-list {
  margin-top: 1.35rem;
}

.search-page-v2 .search-recovery-block {
  padding: 1rem;
  border: 1px solid var(--sp-border);
  border-radius: 1.15rem;
  background: var(--sp-surface-soft);
}

.search-page-v2 .search-recovery-head h3 {
  color: var(--sp-text);
  font-size: 1rem;
  font-weight: 800;
}

.search-page-v2 .search-recovery-head p {
  margin-top: .2rem;
  color: var(--sp-text-muted);
  font-size: .78rem;
  line-height: 1.55;
}

.search-page-v2 .search-recovery-cards {
  gap: .6rem;
  margin-top: .75rem;
}

.search-page-v2 .search-recovery-card {
  padding: .8rem .9rem;
  border: 1px solid var(--sp-border);
  border-radius: .9rem;
  background: #fff;
  color: var(--sp-text-soft);
  box-shadow: none;
}

.search-page-v2 .search-recovery-card strong {
  color: var(--sp-text);
  font-size: .9rem;
  font-weight: 800;
}

.search-page-v2 .search-recovery-card span {
  color: var(--sp-text-muted);
  font-size: .75rem;
  line-height: 1.45;
}

/* Pagination */
.search-page-v2 .search-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin-top: 1rem;
}

.search-page-v2 .search-page-link {
  min-width: 2.55rem;
  min-height: 2.55rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .4rem .75rem;
  border: 1px solid var(--sp-border);
  border-radius: .8rem;
  background: var(--sp-surface);
  color: var(--sp-text-soft);
  font-size: .78rem;
  font-weight: 750;
  box-shadow: none;
}

.search-page-v2 .search-page-link:hover {
  border-color: rgb(217 119 6 / 34%);
  color: var(--sp-accent-strong);
}

.search-page-v2 .search-page-link.is-active {
  border-color: #f59e0b;
  background: #f59e0b;
  color: #111827;
}

/* Mobile */
@media (max-width: 719px) {
  .search-page-v2 {
    padding-top: .75rem;
  }

  .search-page-v2 > div,
  .search-page-v2 > .search-results-shell {
    width: min(calc(100% - 1.25rem), 88rem);
  }

  .search-page-v2 .search-page-hero {
    padding: 1.15rem;
    border-radius: 1.35rem;
  }

  .search-page-v2 .search-page-title {
    font-size: clamp(1.75rem, 9vw, 2.45rem);
  }

  .search-page-v2 .search-toolbar {
    padding: .5rem;
    border-radius: 1.05rem;
  }

  .search-page-v2 .search-toolbar-main,
  .search-page-v2 .search-toolbar-city,
  .search-page-v2 .search-toolbar-button {
    grid-column: 1 / -1;
  }

  .search-page-v2 .search-location-button,
  .search-page-v2 .search-filter-button {
    width: 100%;
    min-width: 0;
    min-height: 3.2rem;
  }

  .search-page-v2 .search-location-button {
    grid-column: 1;
  }

  .search-page-v2 .search-filter-button {
    grid-column: 1;
  }

  .search-page-v2 #search-autocomplete-results.ui-search-results {
    max-height: 18rem;
  }

  .search-page-v2 .search-results-head,
  .search-page-v2 .search-empty-state {
    border-radius: 1.05rem;
  }

  .search-page-v2 .search-result-card {
    border-radius: 1rem;
  }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .search-page-v2 {
    --sp-page: #101010;
    --sp-surface: #171717;
    --sp-surface-strong: #1c1c1c;
    --sp-surface-soft: #211c14;
    --sp-border: #2d2a26;
    --sp-border-strong: #3a342c;
    --sp-text: #f4f4f5;
    --sp-text-soft: #c7c7c7;
    --sp-text-muted: #959595;
    --sp-accent: #f59e0b;
    --sp-accent-strong: #fbbf24;
    --sp-accent-soft: #2b2112;
    --sp-shadow: 0 18px 48px rgb(0 0 0 / 26%);
    --sp-shadow-hover: 0 22px 58px rgb(0 0 0 / 34%);
  }

  .search-page-v2 .search-page-hero {
    border-color: #2d2a26;
    background:
      radial-gradient(circle at 88% 12%, rgb(245 158 11 / 9%), transparent 28%),
      linear-gradient(145deg, #171717 0%, #131313 100%);
  }

  .search-page-v2 .search-page-title,
  .search-page-v2 .search-results-title,
  .search-page-v2 .search-sidebar-title,
  .search-page-v2 .search-result-title,
  .search-page-v2 .search-empty-title,
  .search-page-v2 .search-recovery-head h3,
  .search-page-v2 .search-recovery-card strong {
    color: #f4f4f5;
  }

  .search-page-v2 .search-page-eyebrow,
  .search-page-v2 .search-empty-heading {
    color: #fbbf24;
  }

  .search-page-v2 .search-toolbar {
    border-color: #2d2a26;
    background: rgb(23 23 23 / 88%);
    box-shadow: 0 16px 38px rgb(0 0 0 / 28%);
  }

  .search-page-v2 .search-toolbar-input,
  .search-page-v2 .search-location-button,
  .search-page-v2 .search-filter-button,
  .search-page-v2 .search-result-rating,
  .search-page-v2 .search-result-trust-item,
  .search-page-v2 .search-empty-action-secondary,
  .search-page-v2 .search-recovery-card {
    border-color: #34302b;
    background: #1d1d1d;
    color: #d4d4d8;
  }

  .search-page-v2 .search-toolbar-input:focus-within {
    border-color: rgb(245 158 11 / 45%);
    background: #1f1f1f;
  }

  .search-page-v2 .search-toolbar-control {
    color: #f4f4f5;
  }

  .search-page-v2 .search-toolbar-control::placeholder {
    color: #777;
  }

  .search-page-v2 #search-autocomplete-results.ui-search-results {
    border-color: #34302b !important;
    background: #1b1b1b !important;
  }

  .search-page-v2 #search-autocomplete-results > a[data-autocomplete-select]:hover,
  .search-page-v2 #search-autocomplete-results > a[data-autocomplete-select].is-active {
    background: #262015 !important;
  }

  .search-page-v2 #search-autocomplete-results > a[data-autocomplete-select] > div:first-child {
    color: #f4f4f5 !important;
  }

  .search-page-v2 .search-map-card,
  .search-page-v2 .search-results-head,
  .search-page-v2 .search-result-card,
  .search-page-v2 .search-empty-state {
    border-color: #2d2a26;
    background: #171717;
  }

  .search-page-v2 .search-result-card:hover {
    border-color: rgb(245 158 11 / 30%);
    background: #1a1917;
  }

  .search-page-v2 .search-map-canvas {
    border-color: #2d2a26;
    background: #141414;
  }

  .search-page-v2 .search-result-fallback {
    background: linear-gradient(145deg, #2b2112, #1c1813);
  }

  .search-page-v2 .search-result-badge {
    background: #211c14;
    color: #e7b96d;
  }

  .search-page-v2 .search-result-badge-premium {
    background: #31220d;
    color: #fbbf24;
  }

  .search-page-v2 .search-result-badge-verified {
    background: #0d2a22;
    color: #6ee7b7;
  }

  .search-page-v2 .search-filter-chip {
    border-color: rgb(245 158 11 / 18%);
    background: #211c14;
    color: #e7b96d;
  }

  .search-page-v2 .search-recovery-block {
    border-color: #332c21;
    background: #181611;
  }

  .search-page-v2 .search-page-link {
    border-color: #2d2a26;
    background: #171717;
    color: #c7c7c7;
  }

  .search-page-v2 .search-page-link.is-active {
    border-color: #f59e0b;
    background: #f59e0b;
    color: #111827;
  }

  .search-page-v2 :is(.search-location-button, .search-filter-button) img,
  .search-page-v2 .search-result-trust-icon {
    filter: brightness(0) invert(1);
    opacity: .78;
  }

  .search-filter-modal {
    border-color: #2d2a26 !important;
    background: #171717 !important;
  }

  .search-filter-modal .search-filter-modal-head {
    border-color: #2d2a26;
  }

  .search-filter-modal .search-sidebar-title,
  .search-filter-modal .search-select-control,
  .search-filter-modal .search-check {
    color: #f4f4f5;
  }

  .search-filter-modal .search-filter-close,
  .search-filter-modal .search-select-control,
  .search-filter-modal .search-check {
    border-color: #34302b;
    background: #1d1d1d;
  }

  .search-filter-modal .search-select-field span {
    color: #c7c7c7;
  }
}
