/*
Theme Name:     Hello Elementor Child
Description:    Child theme that contains Google Maps integration and can be used to build projects using Bakery.
Author:         Bspacy
Template:       hello-elementor
Version:        1.0
License:        GNU General Public License v2 or later
License URI:    https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:    cleantheme
*/

/**
 * ********************************************************************************************
 * ********************************************** GOOGLE MAPS SETTINGS PAGE CONFIGURATION
 * ********************************************************************************************
 */
/*remove o overlay "Use Ctrl + ...*/
.gm-style-moc {
  display: none !important;
}
/* Ensure the map container also has a position context for absolute positioning */
.googleMapsWrapper {
  overflow: hidden;
}
#map {
  position: relative; /* Important for absolute positioning of the infowindow inside/relative to it */
  height: 950px;
  width: 100%;
  /* padding-bottom: 100px; */
  /* margin-top: 30px; */
}

/* Map Wrapper */
.map-menu-wrapper {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #ffffffa8;
  padding: 10px;
  border-radius: 5px;
  z-index: 100;
  overflow: visible;
  max-width: 300px;
  border-radius: 10px;
  box-shadow: -1px 1px 15px 0px #232323;
}

.map-menu-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Map Filter Wrapper */
div#map-menu {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Styles for markers that do NOT start with 'adicional_' */
.googleMapsWrapper .default-marker-icon {
  width: 20px !important;
  height: 20px !important;

  /* Especifico para o THE FRAME */
  box-shadow: -1px 1px 15px 0px #232323;
  border-radius: 100%;
}

/* Styles for markers whose ID DOES start with 'adicional_' */
.googleMapsWrapper .adicional-marker-icon {
  width: auto !important; /* Make them larger, use !important if necessary */
  height: 50px !important;
  /* transform: translate(50%, 50%); */
}
/* Menu Map Title */
.map-menu-title {
  font-size: 30px;
  line-height: 1.2;
  color: black;
  margin-bottom: 15px;
}
#map-menu button {
  display: flex;
  gap: 15px;
  outline: unset;
  padding: unset;
  border: unset;
  color: black;
  background-color: unset;
  cursor: pointer;
  align-items: center;
  font-family: "Lofty Chic", Sans-serif;
}
#map-menu button:active,
#map-menu button:focus,
#map-menu button:hover {
  background-color: transparent;
  color: inherit;
  color: black;
}
#map-menu button img {
  width: 25px;
  height: 25px;
}

/* POI side bar with information */
div#poi-sidebar {
  position: absolute;
  top: 0px;
  right: 0px;
  background-color: #000000c4;
  height: 100%;
  min-width: 200px;
  width: 400px;
  padding: 20px;
  transform: translate(120%, 0px);
  transition: all 300ms linear;
  -webkit-box-shadow: -7px 1px 16px 3px rgb(0 0 0 / 41%);
  color: white;
  z-index: 1001;
}
div#poi-sidebar.open {
  transform: translate(0%, 0px);
  transition: all 300ms linear;
}

.POIWrapper {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#poi-sidebar h2,
#poi-sidebar p,
#poi-sidebar a,
#poi-sidebar span {
  color: #554a9a;
}

#poi-sidebar a {
  text-decoration: underline;
}
/* Side bar close button wrapper */
#poi-sidebarbutton {
  position: absolute;
  top: 5px;
  right: 5px;
  background: none;
  border: none;
  color: white;
  font-size: 1.2em;
  cursor: pointer;
  padding: 0px !important;
}
#sidebar-close-btn {
  padding: 0px !important;
  border: unset !important;
  width: 20px;
  height: 20px;
  position: relative;
  cursor: pointer;
  margin-left: auto;
}
#sidebar-close-btn span.line {
  height: 3px;
  display: block;
  position: absolute;
  top: 50%;
  left: 0px;
  width: 100%;
  background-color: white;
  transform: rotate(45deg);
}
#sidebar-close-btn span.line:nth-child(2) {
  top: 50%;
  left: 0px;
  transform: rotate(-45deg);
}

#sidebar-poi-category {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1;
}
#sidebar-poi-title {
  font-size: 30px;
  margin-bottom: 10px;
}

#poi-sidebar p,
#poi-sidebar a,
#poi-sidebar span {
  font-size: 14px;
}

#sidebar-poi-img img {
  height: 170px !important;
  width: 100%;
  object-fit: cover;
  /* border-radius: 10px; */
}

#map-menu button {
  gap: 8px;
}

.map-bottom {
  display: flex;
  gap: 10px;
  background-color: white;
  border-radius: 0px 10px 00px 0px;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding: 5px 10px;
}
@media only screen and (max-width: 991px) {
  .filter-wrapper form .row {
    display: flex !important;
    width: 100%;
    flex-direction: column;
    gap: 12px;
    margin: 0px !important;
  }

  .filter-wrapper form .row > div {
    padding: 0px 10px !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .search-wrapper2 .search2 button.submit {
    width: 100% !important;
  }

  .search-wrapper2 .search2 .form-control {
    margin: 0px 0px;
  }
}
@media only screen and (max-width: 600px) {
  .map-menu-wrapper {
    max-width: 300px;
  }

  div#poi-sidebar {
    width: 300px;
  }

  #sidebar-poi-img img {
    height: 150px !important;
  }
  #sidebar-poi-category {
    font-size: 12px;
  }

  #sidebar-poi-title {
    font-size: 24px;
    line-height: 1;
  }

  #poi-sidebar p,
  #poi-sidebar a,
  #poi-sidebar span {
    font-size: 14px;
  }

  .map-bottom span {
    font-size: 12px;
  }
}
@media only screen and (max-width: 430px) {
  div#map-menu {
    gap: 10px;
  }
}

/* STYLE COPIADO DO PARQUE DA CIDADE */
.googleMapsWrapper .map-menu-wrapper {
  position: absolute;
  top: 50%;
  left: 40px;
  transform: translateY(-50%);
  background-color: #fff;
  padding: 30px;
  border-radius: 5px;
  z-index: 100;
  overflow: visible;
  max-width: fit-content;
  border-radius: 0px;
  box-shadow: none;
}
.googleMapsWrapper .map-menu-title {
  font-size: 36px;
  font-weight: 500;
  font-family: "Hoefler Titling", sans-serif;
  line-height: 1.2;
  color: var(--brown);
  margin-bottom: 52px;
  display: flex;
  flex-direction: column;
}

.googleMapsWrapper .map-menu-title span {
  font-size: 24px;
  font-weight: 300;
  font-family: "Avenir";
  line-height: 29px;
  color: #554a9a;
  padding-top: 8px;
}

.googleMapsWrapper div#map-menu {
  display: grid;
  grid-template-columns: auto;
  gap: 12px;
}

.googleMapsWrapper #map-menu button {
  color: #000;
  font-family: "Avenir", Sans-serif;
  gap: 15px;
}

.googleMapsWrapper #map-menu button img {
  width: 50px;
  height: 50px;
}

.googleMapsWrapper #map-menu button[data-category="all"] {
  /* margin-top: 42px;
  position: absolute;
  bottom: 44px; */
}

.googleMapsWrapper #map-menu button[data-category="all"] img {
  /* width: 56px;
  height: 56px; */
}

.googleMapsWrapper #map .default-marker-icon {
  box-shadow: none;
  width: 30px !important;
  height: 30px !important;
  transform: none !important;
}

.googleMapsWrapper div#poi-sidebar {
  width: fit-content;
  height: fit-content;
  background-color: #ffff;
  box-shadow: none;
  top: 50%;
  right: 10px;
  transform: translateY(-50%) translateX(120%) !important;
  min-width: 300px;
}

.googleMapsWrapper div#poi-sidebar.open {
  transform: translateY(-50%) translateX(0%) !important;
}

.googleMapsWrapper #sidebar-close-btn span.line {
  background-color: #554a9a;
}

.googleMapsWrapper span#sidebar-poi-category {
  font-size: 12px;
  font-weight: 500;
  font-family: "Avenir";
  letter-spacing: 1px;
  line-height: 1.2;
  color: #000;
  margin-bottom: 50px;
}

.googleMapsWrapper #sidebar-poi-title {
  font-size: 24px;
  margin-bottom: 15px;
  margin-top: 0px;
  color: #554a9a;
  font-family: "Hoefler Titling", sans-serif;
  line-height: 1 !important;
}

.googleMapsWrapper div#sidebar-poi-content img {
  width: 300px;
}

.googleMapsWrapper div#sidebar-poi-content p {
  max-width: 300px;
  line-height: 18px;
  color: #000;
  margin: 0px;
}

.marker-title {
  display: none;
}

@media only screen and (max-width: 1280px) {
  .googleMapsWrapper .map-menu-title {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .googleMapsWrapper .map-menu-title span {
    font-size: 20px;
    padding-top: 0;
  }

  .googleMapsWrapper #map-menu button img {
    width: 28px;
    height: 28px;
  }

  .googleMapsWrapper #map-menu button[data-category="all"] {
    /* margin-top: 30px; */
  }

  .googleMapsWrapper #map-menu button[data-category="all"] img {
    /* width: 45px;
    height: 45px; */
  }

  .googleMapsWrapper #map-menu button {
    gap: 8px;
  }

  .all-apartments .filtros-ordenacao {
    position: relative;
  }
}

@media only screen and (max-width: 991px) {
  .googleMapsWrapper {
    position: relative;
    display: flex;
    flex-direction: column-reverse;
  }

  #map {
    position: relative;
    height: 600px;
  }

  .googleMapsWrapper div#map-menu {
    display: grid;
    grid-template-columns: auto auto;
    flex-direction: row;
    gap: 12px;
  }
  .googleMapsWrapper .map-menu-wrapper {
    position: relative;
    top: unset;
    left: unset;
    transform: none;
    max-width: unset;
    box-shadow: none;
    width: 100%;
    padding: 30px;
  }

  .googleMapsWrapper div#poi-sidebar {
    /* width: calc(100% - 60px); */
    top: unset;
    bottom: -100px;
    right: 30px;
    transform: translateY(120%) translateX(0%) !important;
  }

  .googleMapsWrapper div#poi-sidebar.open {
    transform: translateY(0%) translateX(0%) !important;
    bottom: 0px;
  }

  #sidebar-close-btn {
    width: 15px;
    height: 15px;
  }
}

@media only screen and (max-width: 600px) {
  .googleMapsWrapper .map-menu-title {
    font-size: 25px;
  }

  .googleMapsWrapper .map-menu-title span {
    font-size: 16px;
  }

  .googleMapsWrapper div#sidebar-poi-content img {
    width: 100%;
  }

  .googleMapsWrapper div#sidebar-poi-content p {
    max-width: 100%;
  }

  .googleMapsWrapper div#poi-sidebar.open {
    width: calc(100% - 60px);
  }
}
