/* Listing Leaflet map and popup styles extracted from template.css. */
#listing-main-map {
  width: 100%;
  height: 100%;
}

#listing-main-map .gva-icon-map .icon-map {
  width: 54px;
  height: 54px;
  background-size: 100%;
  display: inline-block;
  position: relative;
}

#listing-main-map .gva-icon-map .icon-map .icon-cat {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  top: 4px;
  left: 10px;
  z-index: 9;
  background: #fff;
  color: var(--ziston-theme-color);
  font-size: 20px;
  line-height: 34px;
  text-align: center;
}

#listing-main-map .gva-icon-map .pin-st1, #listing-main-map .gva-icon-map .pin-st0 {
  fill: var(--ziston-theme-color);
}

#listing-main-map .leaflet-popup-content-wrapper {
  border-radius: 0;
}

#listing-main-map .leaflet-popup,
#listing-main-map .leaflet-popup-content-wrapper,
#listing-main-map .leaflet-popup-content,
#listing-main-map .gva-map-content-popup,
.listing-main-map .leaflet-popup,
.listing-main-map .leaflet-popup-content-wrapper,
.listing-main-map .leaflet-popup-content,
.listing-main-map .gva-map-content-popup {
  cursor: default;
}

#listing-main-map .leaflet-popup *,
.listing-main-map .leaflet-popup * {
  cursor: default;
}

#listing-main-map .leaflet-popup-close-button,
#listing-main-map .leaflet-popup-close-button:hover,
#listing-main-map .leaflet-popup-close-button:focus,
#listing-main-map .leaflet-popup-close-button:active {
  -webkit-box-shadow: none !important;
  box-shadow: none !important;
  cursor: pointer;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content {
  margin: 0;
  max-width: 250px;
  min-width: 190px;
}

@media (max-width: 575.98px) {
  #listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content {
    min-width: 90px;
  }
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup {
  max-width: 220px;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .image {
  display: block;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner {
  display: block;
  padding: 15px;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .title {
  display: block;
  font-family: var(--ziston-heading-font-family);
  font-weight: 500;
  font-size: 16px;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .address,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .manager,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .website,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .contact-row,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .email,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .phone {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 7px;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .email {
  margin-top: 7px;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .phone {
  margin-top: 7px;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .address .icon,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .manager .icon,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .website .icon,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .email .icon,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .phone .icon,
#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .contact-row .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  min-width: 20px;
  height: 16px;
  margin-top: 0;
  color: var(--ziston-theme-color);
  font-size: 16px;
  line-height: 1.35;
  position: static;
  text-align: center;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .contact-values {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #333;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .website a {
  color: #333;
  text-decoration: none;
  display: inline;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .email a {
  color: #333;
  text-decoration: none;
  display: inline;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .email .email-text {
  color: #333;
  text-decoration: none;
  display: inline;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  min-width: 0;
  position: static;
  padding-top: 0;
  overflow-wrap: anywhere;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .phone .phone-text {
  color: #333;
  display: inline;
  min-width: 0;
  font-size: 12px;
  font-family: Arial, Helvetica, sans-serif;
  overflow-wrap: anywhere;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .phone a {
  color: #333;
  text-decoration: none;
  display: inline;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .contact-values a {
  display: block;
  color: #333;
  text-decoration: none;
  line-height: 1.25;
  word-break: break-word;
  overflow-wrap: anywhere;
  cursor: pointer;
}

#listing-main-map .leaflet-popup a,
.listing-main-map .leaflet-popup a {
  cursor: pointer;
}

#listing-main-map .leaflet-popup-content-wrapper .leaflet-popup-content .gva-map-content-popup .content-inner .website a:hover {
  color: var(--ziston-theme-color);
}

.lt-map-action {
  margin: 0 0 10px;
  color: #161c26;
  font-family: var(--ziston-heading-font-family);
  font-weight: 500;
  font-size: 16px;
  display: none;
}

.lt-map-action .control-search, .lt-map-action .control-search-link {
  float: left;
}

.lt-map-action .control-map {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.lt-map-action .control-map .control-hover-show-map {
  position: relative;
  top: -4px;
}

.lt-map-action .control-map .control-hover-show-map.pretty.p-switch .state label {
  font-weight: 500 !important;
  color: #5a656b;
}

.lt-map-action .control-map .control-hover-show-map:hover.pretty.p-switch .state label {
  color: var(--ziston-theme-color);
}

.lt-map-action .control-map .control-reset-map {
  float: left;
  position: relative;
  top: -3px;
}

.lt-map-action .control-map .control-reset-map .gva-reset-map i {
  font-size: 18px;
  margin-right: 3px;
}

.lt-map-action .control-map .control-current-map {
  float: left;
  position: relative;
  margin-left: 5px;
}

.lt-map-action .control-map .control-current-map .gva-current-map {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  background: url("../images/icon-position.svg") no-repeat center center transparent;
  position: relative;
  margin-top: -5px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}

@media (prefers-reduced-motion: reduce) {
  .lt-map-action .control-map .control-current-map .gva-current-map {
    -webkit-transition: none;
    transition: none;
  }
}

.lt-map-action .control-map .control-current-map .gva-current-map:hover {
  border-color: var(--ziston-theme-color);
}

.gva-listings-map-page {
  position: relative;
}

.frontpage .block-map-fullwidth,
.path-frontpage .block-map-fullwidth,
.home .block-map-fullwidth {
  position: relative;
  left: 50%;
  width: 100vw;
  max-width: 100vw;
  margin-left: -50vw;
  margin-right: -50vw;
}

.frontpage .block-map-fullwidth .map-layout-full,
.frontpage .block-map-fullwidth .main-map-wrapper,
.frontpage .block-map-fullwidth #listing-main-map,
.path-frontpage .block-map-fullwidth .map-layout-full,
.path-frontpage .block-map-fullwidth .main-map-wrapper,
.path-frontpage .block-map-fullwidth #listing-main-map,
.home .block-map-fullwidth .map-layout-full,
.home .block-map-fullwidth .main-map-wrapper,
.home .block-map-fullwidth #listing-main-map {
  width: 100%;
  max-width: 100%;
}

.map-layout-full .main-map-wrapper {
    display: flex;
    align-items: stretch;
}

.map-layout-full .main-map-wrapper #listing-main-map {
    height: auto;
    min-height: 300px;
    border-radius: 4px;
    -webkit-box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
}

.map-layout-full .main-map-wrapper #listing-main-map > div {
    height: 100%;
    min-height: 520px;
}



@media (max-width: 767.98px) {
  .map-layout-full .main-map-wrapper #listing-main-map {
    height: 600px;
  }
}

@media (max-width: 575.98px) {
  .map-layout-full .main-map-wrapper #listing-main-map {
    height: 500px;
  }
}

.map-layout-full .main-listing-wrapper {
  position: relative;
  z-index: 11;
}

.map-layout-full .main-listing-wrapper .lt-map-action {
  position: absolute;
  top: 0;
  right: 0;
  background: #fff;
  z-index: 11;
  padding: 15px 15px 12px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  border-radius: 0 0 0 4px;
}

.map-layout-full .main-listing-wrapper .lt-map-action .control-search, .map-layout-full .main-listing-wrapper .lt-map-action .control-search-link, .map-layout-full .main-listing-wrapper .lt-map-action .control-reset-map {
  font-size: 14px;
  margin-right: 15px;
  line-height: 1;
}

.map-layout-full .main-listing-wrapper .lt-map-action .control-map {
  line-height: 1;
}

.filter-map-popular {
  position: absolute;
  width: 100%;
  left: 0;
  bottom: 60px;
  z-index: 9;
  padding-left: 20px;
  padding-right: 20px;
}

@media (max-width: 767.98px) {
  .filter-map-popular {
    position: relative;
    bottom: 0;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

.filter-map-popular .block form {
  background: #fff;
  padding: 6px;
  border-radius: 4px;
  -webkit-box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 10px 30px 0 rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-map-popular .block form > div:nth-child(3):after {
  display: none;
}


#listing-main-map,
.listing-main-map,
.listing-main-map .leaflet-container,
.listing-main-map .leaflet-pane,
.listing-main-map .leaflet-tile,
.listing-main-map .leaflet-marker-icon {
  cursor: grab;
}

#listing-main-map:active,
.listing-main-map:active,
.listing-main-map .leaflet-container:active,
.listing-main-map .leaflet-dragging,
.listing-main-map .leaflet-dragging .leaflet-pane,
.listing-main-map .leaflet-dragging .leaflet-tile {
  cursor: grabbing;
}

#listing-main-map .leaflet-marker-icon.leaflet-interactive,
#listing-main-map .leaflet-marker-icon.gva-icon-map,
#listing-main-map .marker-cluster,
.listing-main-map .leaflet-marker-icon.leaflet-interactive,
.listing-main-map .leaflet-marker-icon.gva-icon-map,
.listing-main-map .marker-cluster {
  cursor: pointer;
}
