body[data-route-name^="search"] {
  overflow-x: hidden;
  background: #f6f6f4;
}

body[data-route-name^="search"] .site-main {
  min-height: 0;
}

body[data-route-name^="search"] .site-footer {
  display: none;
}

.search-app {
  --search-blue: var(--black);
  --search-panel: #ffffff;
  --search-border: rgba(43, 43, 43, 0.12);
  --search-card-radius: 12px;
  position: relative;
  width: 100vw;
  min-height: calc(100vh - 112px);
  margin-left: calc(50% - 50vw);
  background: #f6f6f4;
  overflow: hidden;
}

.search-sidebar {
  display: none;
}

.search-map-panel {
  position: relative;
  min-height: calc(100vh - 112px);
}

.search-mobile-top {
  position: absolute;
  inset: 18px 14px auto;
  z-index: 30;
  display: grid;
  gap: 14px;
}

.search-toolbar {
  display: grid;
  gap: 8px;
  align-items: center;
}

.search-toolbar--mobile {
  grid-template-columns: 40px minmax(0, 1fr) 40px 40px;
}

.search-toolbar--desktop {
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--search-border);
}

.search-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #7ed7c1;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.search-icon-button:hover,
.search-icon-button:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 182, 193, 0.34), 0 10px 22px rgba(255, 182, 193, 0.22);
  transform: translateY(-1px);
  outline: none;
}

.search-icon-button i {
  display: block;
  line-height: 1;
}

.search-icon-button--gold {
  background: var(--gold);
  color: #fff;
}

.search-icon-button--near {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.search-icon-button--near.is-clear {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

.search-icon-button--toggle {
  background: var(--mint);
  color: #fff;
  font-size: 22px;
}

.search-field-wrap {
  position: relative;
}

.search-input-icon {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  color: #a4a4a4;
  pointer-events: none;
  z-index: 1;
}

.search-input,
.select {
  width: 100%;
  min-height: 42px;
  padding: 10px 14px 10px 38px;
  border-radius: 8px;
  border: 1px solid var(--search-border);
  background: rgba(255, 255, 255, 0.98);
  color: var(--black);
  font: inherit;
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 60;
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.99);
  box-shadow: 0 16px 44px rgba(43, 43, 43, 0.16);
}

.search-suggestions[hidden] {
  display: none;
}

.search-suggestion {
  display: grid;
  gap: 2px;
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.search-suggestion:hover,
.search-suggestion:focus {
  background: rgba(126, 215, 193, 0.18);
  outline: none;
}

.search-suggestion__label {
  font-weight: 800;
}

.search-suggestion__meta {
  color: var(--muted);
  font-size: 13px;
}

.search-map-shell {
  position: relative;
  height: calc(100vh - 112px);
  min-height: 640px;
}

.search-map {
  width: 100%;
  height: 100%;
  background: #dcefdc;
}

.search-map-loader {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(246, 246, 244, 0.72);
  backdrop-filter: blur(1px);
}

.search-map-loader[hidden] {
  display: none;
}

.search-map-loader__spinner {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(43, 43, 43, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: searchSpin 0.8s linear infinite;
}

.search-map-loader p {
  margin: 0;
  font-weight: 700;
  color: var(--black);
  text-align: center;
}

.search-map-loader > * {
  text-align: center;
}

.search-map-loader > div,
.search-map-loader > p {
  display: block;
}

.search-map-loader {
  flex-direction: column;
  gap: 12px;
}

.search-area-button {
  position: absolute;
  top: 18px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  border: 0;
  border-radius: 999px;
  padding: 10px 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(43, 43, 43, 0.16);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.search-area-button:hover,
.search-area-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(255, 182, 193, 0.34), 0 16px 36px rgba(43, 43, 43, 0.18);
  transform: translateX(-50%) translateY(-1px);
  outline: none;
}

.map-marker {
  width: 44px;
  height: 44px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.map-marker::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  transform: none;
  background: rgba(255, 255, 255, 0.96);
  border: 2px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(43, 43, 43, 0.18);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.map-marker img,
.map-marker__fallback {
  position: relative;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, var(--gold), var(--pink));
  transform: none;
}

.map-marker.is-selected::before {
  background: rgba(255, 255, 255, 0.96);
  border-color: var(--pink);
  box-shadow: 0 0 0 6px rgba(255, 182, 193, 0.35), 0 14px 34px rgba(43, 43, 43, 0.18);
  transform: scale(1.08);
}

.search-origin-marker {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--pink);
  filter: drop-shadow(0 12px 14px rgba(43, 43, 43, 0.24));
  pointer-events: none;
}

.search-origin-marker i {
  font-size: 44px;
  line-height: 1;
}

.selected-shed-card {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 6;
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 18px 50px rgba(43, 43, 43, 0.18);
  transform-origin: bottom center;
  transition:
    max-height 220ms cubic-bezier(0.22, 1, 0.36, 1),
    padding 220ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 220ms ease;
}

.selected-shed-card[hidden],
.mobile-list-panel[hidden],
.search-filter-overlay[hidden] {
  display: none;
}

.selected-shed-card h2,
.search-result-card h3 {
  font-size: 17px;
}

.selected-shed-card__empty {
  display: grid;
  gap: 10px;
}

.selected-shed-card__empty h2 {
  margin: 0;
}

.selected-shed-card__empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.selected-shed-card__top,
.search-result-card__top,
.search-results-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.search-result-card__title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.selected-shed-card__title {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.selected-shed-card__title h2 {
  margin: 0;
}

.selected-shed-card__dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  border: 1px solid var(--mint);
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  cursor: pointer;
  padding: 0;
}

.selected-shed-card__dismiss .bi {
  font-size: 14px;
  line-height: 1;
}

.search-share-button {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}

.search-share-button i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1;
  vertical-align: middle;
}

.search-share-button .bi::before {
  display: block;
  line-height: 1;
}

.selected-shed-share-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: 8px;
  border: 1px solid var(--pink);
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  padding: 3px 10px;
  min-height: 24px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
}

.selected-shed-share-inline .bi {
  font-size: 11px;
  line-height: 1;
}

.distance-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 3px 10px;
  min-height: 24px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.search-result-card__meta,
.selected-shed-card__meta {
  margin: 0;
  color: var(--black);
  line-height: 1.45;
}

.open-line {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: 0;
  color: var(--black);
}

.search-card-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  font-weight: 800;
  white-space: nowrap;
  margin-top: auto;
}

.search-card-actions a,
.search-card-actions button {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.search-card-socials {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.search-card-actions .search-card-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--black);
}

.search-card-socials .bi {
  font-size: 16px;
  line-height: 1;
}

.search-card-actions a:hover,
.search-card-actions button:hover {
  color: var(--gold);
}

.selected-shed-card__directions {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
  padding: 13px 18px;
  border-radius: 4px;
  background: var(--mint);
  color: #fff;
  font-weight: 800;
}

.opening-hours {
  display: grid;
  gap: 10px;
  padding-top: 6px;
  position: relative;
  z-index: 1;
}

.opening-hours h3 {
  font-size: 14px;
}

.opening-hours__note {
  margin: -4px 0 4px;
  color: rgba(43, 43, 43, 0.58);
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
}

.opening-hours__row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.selected-shed-card__close {
  display: inline-flex;
  justify-content: center;
  margin-top: 8px;
  padding: 12px 18px;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.mobile-list-panel {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 14px;
  padding: 92px 14px 18px;
  overflow: hidden;
  background: transparent;
}

.search-results-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}

.search-results-heading {
  align-items: center;
  padding: 0 2px;
}

.search-results-heading span,
.search-status {
  color: var(--muted);
  font-size: 14px;
}

.search-status {
  margin: 0;
}

.search-reset-button {
  justify-self: start;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--search-blue);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-results-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  gap: 14px;
  min-height: 0;
  overflow: auto;
  padding: 8px 8px 18px;
  background: transparent;
}

.search-result-card {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  height: auto;
  overflow: visible;
  padding: 24px 20px;
  border: 3px solid var(--search-border);
  border-radius: var(--search-card-radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.06);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease;
}

.search-result-card:hover,
.search-result-card:focus-within {
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.06);
  transform: translateY(-1px);
}

.search-result-card.is-selected {
  border-color: var(--pink);
  box-shadow: 0 10px 24px rgba(43, 43, 43, 0.06);
}

.search-result-card.is-expanded {
  position: relative;
  z-index: 1;
  min-height: 0;
  background: #fff;
}

.search-result-card__expanded {
  display: grid;
  gap: 14px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--search-border);
  background: #fff;
  animation: hoursSlideUp 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.search-result-card.is-expanded .opening-hours {
  padding-top: 0;
}

.search-result-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.search-result-card__description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: 46px;
  max-height: 46px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.search-filter-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.34);
}

.search-filter-panel {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 81;
  width: min(560px, 100vw);
  display: flex;
  flex-direction: column;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 180ms ease;
  overflow: hidden;
}

.search-filter-panel.is-open {
  transform: translateX(0);
}

@keyframes hoursSlideUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes searchSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.search-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--search-border);
  color: var(--search-blue);
}

.search-filter-header h2 {
  color: var(--search-blue);
  font-size: 24px;
}

.search-filter-close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--search-blue);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.filter-scroll {
  min-height: 0;
  overflow-y: auto;
}

.filter-group {
  flex: 0 0 auto;
  padding: 24px 28px;
  border-bottom: 1px solid var(--search-border);
}

.filter-group summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
  color: var(--search-blue);
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  list-style: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.filter-group summary:focus-visible {
  color: var(--gold);
  outline: none;
}

.filter-group summary::-webkit-details-marker {
  display: none;
}

.filter-group summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 22px;
  line-height: 1;
}

.filter-group[open] summary {
  margin-bottom: 14px;
}

.filter-group[open] summary::after {
  content: "-";
}

.filter-options {
  display: grid;
  gap: 0;
}

.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(43, 43, 43, 0.08);
  font-weight: 700;
}

.filter-option input {
  width: 24px;
  height: 24px;
  accent-color: var(--search-blue);
}

.filter-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
  border-top: 1px solid var(--search-border);
  background: #fff;
}

.empty-state {
  min-height: 260px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px 24px;
  background: #fff;
  text-align: center;
}

.empty-state h2 {
  font-size: 22px;
}

.empty-state p {
  max-width: 280px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 899px) {
  body[data-route-name^="search"] {
    overflow: hidden;
  }

  body[data-route-name^="search"] .site-main {
    height: calc(100dvh - 112px);
    overflow: hidden;
  }

  .search-app,
  .search-map-panel,
  .search-map-shell {
    min-height: calc(100dvh - 112px);
    height: calc(100dvh - 112px);
  }

  .search-map-shell {
    box-sizing: border-box;
    padding-top: 78px;
    background: #f6f6f4;
  }

  .search-map {
    height: 100%;
  }

  .selected-shed-card {
    right: 0;
    bottom: 0;
    left: 0;
    max-height: min(260px, 34dvh);
    overflow-y: auto;
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -12px 34px rgba(43, 43, 43, 0.12);
  }

  .selected-shed-card.is-empty {
    max-height: none;
    min-height: 156px;
  }

  .selected-shed-card.is-expanded {
    animation: hoursSlideUp 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .selected-shed-card .search-card-actions {
    margin-top: 0;
  }

  .selected-shed-card.is-expanded {
    top: 84px;
    max-height: calc(100dvh - 116px);
    padding-top: 28px;
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    font-size: 14px;
    line-height: 1.32;
  }

  .selected-shed-card.is-expanded .selected-shed-card__directions,
  .selected-shed-card.is-expanded .opening-hours,
  .selected-shed-card.is-expanded .selected-shed-card__close {
    animation: hoursSlideUp 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .selected-shed-card.is-expanded .selected-shed-card__directions,
  .selected-shed-card.is-expanded .selected-shed-card__close {
    width: 100%;
    margin-top: 4px;
    padding: 11px 16px;
    font-size: 14px;
  }

  .selected-shed-card.is-expanded h2 {
    font-size: 16px;
  }

  .selected-shed-card.is-expanded .distance-pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  .selected-shed-card.is-expanded .selected-shed-card__title {
    gap: 6px;
  }

  .selected-shed-card.is-expanded .opening-hours {
    gap: 7px;
    padding-top: 2px;
  }

  .selected-shed-card.is-expanded .opening-hours h3 {
    font-size: 13px;
  }

  .selected-shed-card.is-expanded .opening-hours__row {
    gap: 14px;
  }

  .search-area-button {
    top: 90px;
  }

  .search-app.is-list-view .search-map-shell,
  .search-app.is-list-view .selected-shed-card {
    display: none;
  }

  .search-result-card {
    min-height: 260px;
  }

  .search-result-card.is-expanded .opening-hours {
    gap: 9px;
  }

  .search-result-card.is-expanded .opening-hours__row {
    gap: 16px;
  }

  .search-result-card.is-expanded {
    min-height: 560px;
    padding-bottom: 28px;
  }

  .search-result-card.is-expanded .search-result-card__description {
    min-height: 0;
    max-height: none;
    -webkit-line-clamp: unset;
  }
}

@media (min-width: 900px) {
  body[data-route-name^="search"] .nav-wrap {
    padding-bottom: 18px;
  }

  .search-app {
    display: grid;
    grid-template-columns: minmax(360px, 28vw) minmax(0, 1fr);
    height: calc(100vh - 134px);
    min-height: 720px;
  }

  .search-sidebar {
    display: grid;
    grid-template-rows: auto 1fr;
    min-height: 0;
    background: #f7f7f7;
    border-right: 1px solid var(--search-border);
  }

  .search-map-panel,
  .search-map-shell {
    min-height: 0;
    height: 100%;
  }

  .search-mobile-top,
  .mobile-list-panel {
    display: none;
  }

  .search-results-panel {
    padding: 20px 18px;
  }

  .search-results-list {
    padding-right: 24px;
    scrollbar-gutter: stable;
  }

  .search-result-card {
    min-height: 240px;
  }

  .selected-shed-card {
    right: 28px;
    bottom: 28px;
    left: auto;
    width: min(420px, calc(100% - 56px));
    border-radius: 16px;
  }

  .search-area-button {
    top: 22px;
  }
}
