/* Search / map page – redesign bridge over live Vue catalog */

#body-103 .middle,
#body-103 .container,
#body-103 .content,
body.search-page .middle,
body.search-page .container,
body.search-page .content {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0;
}

#body-103 .clear,
body.search-page .clear {
  display: none;
}

.search-vue-root {
  width: 100%;
}

.search-filters-form {
  padding: 18px 22px 25px;
}

.result-card {
  cursor: default;
}

.result-card .result-bottom span {
  color: #557064;
  font-size: 13px;
  font-weight: 700;
}

/* Keep photo height fixed so tall images don't stretch cards (esp. list view) */
.results-grid .result-photo {
  height: 212px;
  overflow: hidden;
}

.results-grid .result-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.results-grid.is-list .result-card {
  align-items: stretch;
}

.results-grid.is-list .result-photo {
  width: 34%;
  height: 215px !important;
  min-height: 215px;
  max-height: 215px;
  flex: 0 0 34%;
  overflow: hidden;
}

.results-grid.is-list .result-photo > a {
  display: block;
  width: 100%;
  height: 100%;
}

.results-grid.is-list .result-card-body {
  min-width: 0;
}

.view-switch .icon {
  width: 17px;
  height: 17px;
}

/* Beat .btn display rules so desktop keeps the sidebar, not the mobile toggle */
.toolbar-actions .mobile-filter,
.search-filters-form .mobile-apply {
  display: none !important;
}

@media (max-width: 940px) {
  .toolbar-actions .mobile-filter,
  .search-filters-form .mobile-apply {
    display: inline-flex !important;
  }
}

.filter-sidebar .icon,
.catalog-hero .icon,
.quick-consult .icon,
.search-workspace .icon {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Full-width OpenStreetMap (no side list) */
.search-results > .search-osm-map {
  display: block;
  width: 100%;
  margin-top: 18px;
  border-radius: 19px;
  overflow: hidden;
  background: #f0f5ed;
  border: 1px solid #dce8df;
  padding: 16px;
}

.search-results > .search-osm-map .map-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: #174f43;
  margin-bottom: 12px;
}

.search-results > .search-osm-map .map-heading strong {
  font-size: 18px;
  font-weight: 700;
}

.search-results > .search-osm-map .map-heading span {
  font-size: 13px;
  color: #718779;
}

.search-results > .search-osm-map #products-map,
.search-results > .search-osm-map .products-map-container {
  width: 100%;
  height: min(68vh, 620px);
  min-height: 420px;
  border-radius: 16px;
  overflow: hidden;
  background: #e8efe6;
}

.search-results > .search-osm-map .leaflet-container {
  width: 100%;
  height: 100%;
  font-family: inherit;
  border-radius: 16px;
  overflow: hidden !important;
  contain: paint layout;
}

.search-results > .search-osm-map .leaflet-control-zoom a {
  color: #174f43 !important;
}

.search-results > .search-osm-map .map-marker-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(21, 63, 56, 0.16);
}

@media (max-width: 700px) {
  .search-results > .search-osm-map {
    padding: 12px;
  }

  .search-results > .search-osm-map #products-map,
  .search-results > .search-osm-map .products-map-container {
    height: 55vh;
    min-height: 320px;
  }
}

/* Crawlable directory index (SSR) */
.catalog-seo-index {
  padding-block: 56px 72px;
}
.catalog-seo-head {
  max-width: 720px;
  margin-bottom: 28px;
}
.catalog-seo-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  color: #153f38;
  font-weight: 600;
  letter-spacing: -1px;
  margin: 0 0 12px;
}
.catalog-seo-head p {
  color: #5f7167;
  font-size: 17px;
  margin: 0;
}
.catalog-seo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}
.catalog-seo-list a {
  display: block;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f6f8f4;
  color: inherit;
  text-decoration: none;
  border: 1px solid #e4ebe4;
  transition: border-color .15s ease, background .15s ease;
}
.catalog-seo-list a:hover {
  border-color: #be9256;
  background: #fff;
}
.catalog-seo-list strong {
  display: block;
  color: #153f38;
  font-size: 16px;
  margin-bottom: 4px;
}
.catalog-seo-list span,
.catalog-seo-list em {
  display: block;
  color: #61756a;
  font-size: 13px;
  font-style: normal;
}
.catalog-seo-list em {
  margin-top: 6px;
  color: #7a8b82;
}
.catalog-seo-pagination {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  color: #557064;
  font-size: 14px;
}
.catalog-seo-pagination a {
  color: #153f38;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid #be9256;
}
@media (max-width: 700px) {
  .catalog-seo-list {
    grid-template-columns: 1fr;
  }
  .catalog-seo-index {
    padding-block: 36px 48px;
  }
}
