/* Barber.Style 0.6.13 regression corrections. Loaded after the shared layer. */

body.bs-location-page .bs-location {
  padding-top: 72px;
}

body:not(.home) .wp-site-blocks > header.wp-block-template-part + * {
  margin-top: 72px !important;
}

.single-gd_place
  #title
  > .row:has(nav[aria-label='breadcrumb' i]:not(.bs-breadcrumb)),
.single-gd_place
  #title
  nav[aria-label='breadcrumb' i]:not(.bs-breadcrumb) {
  display: none !important;
}

.geodir_map_container.bs-map-enhanced-shell,
.geodir_map_container.bs-map-enhanced-shell .main_map_wrapper,
.geodir_map_container.bs-map-enhanced-shell .iprelative {
  position: relative !important;
  top: auto !important;
  height: auto !important;
  min-height: 0 !important;
}

.post-type-archive-gd_place
  .geodir_map_container.bs-map-enhanced-shell
  .bs-directory-map {
  height: clamp(480px, 62vh, 640px);
  min-height: 480px;
}

.bs-location-map__frame,
.bs-location-map__source {
  min-height: 500px;
}

.bs-location-map__frame .bs-directory-map {
  height: clamp(500px, 52vw, 620px);
  min-height: 500px;
}

.bs-directory-map .gm-style-iw-c,
.bs-directory-map .gm-style-iw-d {
  max-height: none !important;
  overflow: visible !important;
}

.bs-directory-map__popup {
  width: 280px;
  min-width: 0;
  max-width: 280px;
  overflow: hidden;
}

.geodir-loop-container .geodir-post.bs-map-active-result {
  border-color: inherit !important;
  box-shadow: none !important;
}

.geodir-loop-container .geodir-gridview > .geodir-post > .card,
.geodir-loop-container .geodir-listview > .geodir-post > .card {
  height: 100%;
}

.geodir-loop-container .geodir-post .card-body,
.bs-directory-card__details {
  min-width: 0;
}

.bs-directory-card__details {
  flex: 1;
}

.bs-directory-card__actions {
  margin-top: auto;
  padding-top: 8px;
}

@media (max-width: 900px) {
  body.bs-location-page .bs-location {
    padding-top: 64px;
  }

  body:not(.home) .wp-site-blocks > header.wp-block-template-part + * {
    margin-top: 64px !important;
  }

  .post-type-archive-gd_place
    .geodir_map_container.bs-map-enhanced-shell
    .bs-directory-map {
    height: clamp(420px, 62vh, 540px);
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .bs-location-map__frame,
  .bs-location-map__source,
  .bs-location-map__frame .bs-directory-map {
    height: 420px;
    min-height: 420px;
  }

  .bs-directory-map__popup {
    width: 240px;
    max-width: 240px;
  }

  .bs-directory-map__popup-image {
    height: 96px;
  }
}
