/*
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
*/

/* --------------------- BASE CONFIGURATIONS --------------------- */

* {
  box-sizing: border-box;
}

/* --------------------- TYPOGRAPHY SMOOTHING --------------------- */

h1,
h2,
h3,
h4,
h5,
h6,
p,
label,
input,
a,
span,
li {
  -webkit-font-smoothing: antialiased;
}

/* ========================================================================== */
/*                             	OUTRAS X    		                          */
/* ========================================================================== */

/****************************** MEDIA QUERIES ************************************/
/* PARA ECRAS 4k - criar container para nao ir para as pontas */
@media (min-width: 2250px) {
}

/* Intermédio 2 */
@media print, screen and (max-width: 1750px) {
}

@media print, screen and (max-width: 1550px) {
}

@media only screen and (max-width: 1440px) {
}

/* Media query para menu hamburguer */
@media print, screen and (max-width: 1200px) {
}

/*tablet landscape or old laptop */
@media print, screen and (max-width: 1024px) {
}

/* Size considerado para Tablet */
@media only screen and (max-width: 991px) {
}
/* Size considerado para Tablet modo portrait*/
@media only screen and (max-width: 767.5px) {
}

@media only screen and (max-width: 600px) {
}
@media only screen and (max-width: 500px) {
}
/* Size considerado Mobile - 430px*/
@media only screen and (max-width: 430px) {
}
/* smartphones plus */
@media only screen and (max-width: 414px) {
}
/* smartphones normais  */
@media only screen and (max-width: 378px) {
}
/* iphone 5 <=  */
@media only screen and (max-width: 320px) {
}
.wpml-ls-legacy-list-horizontal {

    width: fit-content;
    margin-inline: auto;
}
.wpml-ls a:hover{
	text-decoration:unset !important;
}

/**
 * ********************************************************************************************
 * ********************************************** GOOGLE MAPS SETTINGS PAGE CONFIGURATION
 * ********************************************************************************************
 */
/* Ensure the map container also has a position context for absolute positioning */
.googleMapsWrapper {
  overflow: hidden;
}

/*remove o overlay "Use Ctrl + ...*/
.gm-style-moc {
  display: none !important;
}

#map {
  position: relative; /* Important for absolute positioning of the infowindow inside/relative to it */
  max-height: 800px;
  height: 100vh;
  width: 100%;
  /* padding-bottom: 100px; */
  /* margin-top: 30px; */
}

/* Map Wrapper */
.map-menu-wrapper {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background-color: #e6e8d9;
  padding: 24px;
  z-index: 100;
  overflow: visible;
  -webkit-box-shadow: -4px 5px 15px 2px rgb(0 0 0 / 27%);
}

.map-menu-wrapper::before {
  content: "";
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Map Filter Wrapper */
div#map-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  flex-direction: row-reverse;
  gap: 10px;
  justify-items: center;
}

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

/* Styles for markers whose ID DOES start with 'adicional_' */
.googleMapsWrapper .adicional-marker-icon {
  width: auto !important; /* Make them larger, use !important if necessary */
  height: 70px !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: #343333;
  background-color: unset;
  cursor: pointer;
  align-items: center;
  font-family: "Be Vietnam Pro", Sans-serif;
  font-size: 12px;
  justify-content: flex-start;
  flex-direction: column;
  width: fit-content;
  text-align: center;
  max-width: 90px;

  font-family: "Poppins", 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: 30px;
  height: 30px;
}

/* POI side bar with information */
/* POI side bar with information */
div#poi-sidebar {
  position: absolute;
  top: 30px;
  right: 30px;
  background-color: #e6e8d9;
  height: fit-content;
  min-width: 200px;
  width: 400px;
  padding: 28px;
  transform: translate(120%, 0px);
  transition: all 300ms linear;
  -webkit-box-shadow: -4px 5px 15px 2px rgb(0 0 0 / 27%);
  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: #343333;
}

#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: #343333;
  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;
  text-transform: uppercase;
}
#sidebar-poi-title {
  font-size: 26px;
  margin-block: 0px !important;
  text-transform: capitalize;
  font-family: "Playfair Display", sans-serif;
}

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

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

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

.map-bottom {
  display: flex;
  gap: 10px;
  background-color: white;
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding: 5px 10px;
}

gmp-advanced-marker:has(.adicional-marker-icon){
  z-index: 2;
  position: relative;
}
@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;
  }

  .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;
  }

  .googleMapsWrapper {
    overflow: hidden;
    height: fit-content;
    display: flex;
    flex-direction: column-reverse;
    gap: 20px;
  }
  #map {
    position: relative;
    /* height: 600px; */
  }
  .map-menu-wrapper {
    position: relative;
    top: 0px;
    left: 0px;

    overflow: visible;
    max-width: fit-content;
    -webkit-box-shadow: unset;
  }
  div#map-menu {
    display: flex;

    flex-direction: row;
    gap: 20px;
    justify-items: center;
    overflow: scroll;
  }

  #map-menu button {
    justify-content: flex-start;
    flex-direction: column;
    max-width: unset;
    width: 150px !important;
  }
  .map-menu-wrapper {
    max-width: unset !important;
  }

  div#poi-sidebar {
    top: unset;
    bottom: 20px;
    left: 20px;
    width: calc(100% - 40px);
  }
}
@media only screen and (max-width: 430px) {
  div#map-menu {
    gap: 10px;
  }
}
