*,
*::before,
*::after {
  box-sizing: border-box;
}



.btn-text {
  margin: 0;
  padding: 0;
  font-family: "Roboto", sans-serif;
  font-weight: lighter;
}

.header {
  padding: 10px;
  padding-left: 10%;
  padding-right: 10%;
  font-size: 14px;
  letter-spacing: 6px;
  text-align: center;
  color: #999;
  background-color: #31343a;
}

.header__title {
  margin: 0;
  padding: 10px;
  border-top: 1px solid #999;
  border-bottom: 1px solid #999;
  font-family: "Montserrat", sans-serif;
  font-size: 42px;
  font-weight: bold;
}

.content {
  display: flex;
  background-color: rgba(255, 255, 255, 0.6);
}
@media screen and (max-width: 620px) {
  .content {
    flex-direction: column;
  }
}

.menu-bar {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 30%;
  background-color: #afb3bb;
}
@media screen and (min-width: 620px) {
  .menu-bar {
    width: calc(100% / 3);
  }
}

.menu-bar__header {
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
}

.menu-bar__header-img {
  background-color: #99cbf9;
  opacity: 0.8;
  transform: scale(1);
  transition: all 0.5s ease;
}
.menu-bar__header-img:hover {
  opacity: 1;
  transform: scale(2);
  cursor: pointer;
}

.menu-bar__btn {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  padding: 0;
  margin: 0;
}

.keep-highlighted {
  background-color: rgba(204, 204, 204, 0.6);
}

/**
*[1] toggle via js with class .is-active
*[4] reorder as last element, depending of the devide size
*/
.menu-bar__btnlist {
  width: 50%;
  padding: 10px;
  font-size: 16px;
  text-align: center;
  color: rgba(51, 51, 51, 0.6);
  list-style-type: none;
}
.menu-bar__btnlist:nth-last-child(2) {
  order: 99;
}
.menu-bar__btnlist:hover {
  background-color: rgba(230, 230, 230, 0.6);
  cursor: pointer;
}
@media screen and (min-width: 620px) {
  .menu-bar__btnlist {
    width: 100%;
    height: 100%;
    padding-left: 0;
    padding-right: 0;
  }
  .menu-bar__btnlist:nth-last-child(1) {
    order: 99;
  }
}
@media screen and (min-width: 620px) {
  .menu-bar__btnlist--close {
    display: block;
    max-height: 200px;
    overflow-y: auto;
  }
}
@media screen and (max-width: 620px) {
  .menu-bar__btnlist--sm-close {
    display: block;
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    top: calc(50% - 20px);
    right: calc(50% - 20px);
    background-color: #606671;
    border: 1px solid rgba(204, 204, 204, 0.6);
    z-index: 10;
  }
}

.menu-bar__btnlist__subnav {
  display: none;
  position: absolute;
  top: 100%;
  width: 140px;
  padding: 0;
}
.menu-bar__btnlist__subnav.is-active {
  display: block;
}
.menu-bar__btnlist__subnav--left {
  left: 0;
}
.menu-bar__btnlist__subnav--right {
  right: 0;
}
@media screen and (min-width: 620px) {
  .menu-bar__btnlist__subnav {
    position: relative;
    width: 100%;
    height: 30vh;
    margin-top: 10px;
    overflow: auto;
  }
}
@media screen and (max-width: 620px) {
  .menu-bar__btnlist__subnav--lg.is-active {
    display: flex;
    flex-wrap: wrap;
    width: 75%;
  }
}

/**
*[2] hidding modified button when the screen is small
*/
.menu-bar__btnlist-item {
  width: 100%;
  padding: 10px;
  padding-left: 20px;
  border-top: 1px solid rgba(179, 179, 179, 0.6);
  background-color: #e6e7ea;
  text-align: left;
  font-size: 14px;
  list-style-type: none;
}
.menu-bar__btnlist-item:hover {
  background-color: rgba(230, 230, 230, 0.6);
}
@media screen and (max-width: 620px) {
  .menu-bar__btnlist-item--sm {
    width: 25%;
  }
}

.map {
  flex-grow: 1;
  flex-shrink: 0;
  flex-basis: 70%;
  margin: 0;
}

.map__container {
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  border-left: 0;
  border-right: 0;
}
@media screen and (min-width: 620px) {
  .map__container {
    border-left: 1px solid rgba(255, 255, 255, 0.6);
    border-right: 1px solid rgba(255, 255, 255, 0.6);
  }
}

/**
*[3] toggle class with js (.show), used height = 0 to keep the map aligned on top
*/
.map__svg {
  height: 0;
  opacity: 0;
  transition: all 0.15s ease-in-out;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.map__svg.show {
  height: 20%;
  opacity: 1;
  background-color: transparent; /* Fondo 100% transparente */
}

.svg-scaling {
  width: 30%;
  height: auto;
  max-height: 30%;
  margin: 0 auto; /* asegura que quede centrado si no usas flex */
  display: block;
}


[data-area].active path {
  fill: #747367;
}

[data-item].highlight {
  fill: #3e3d37;
}

[data-item] {
  fill: #a5a49a;
}
[data-item]:hover {
  fill: #3e3d37;
  cursor: pointer;
}

[data-gmr] {
  display: none;
}

/**
*[5] limiting the view of text to a fixed scrolling height, depending of the device, active with overflow auto
*/
.map__info {
  display: none;
  width: 100%;
  max-height: 25vh;
  padding: 10px 20px;
  vertical-align: top;

  overflow: auto;
}
.map__info.show-info {
  display: inline-block;
}
.map__info p {
  font-family: "Roboto", sans-serif;
  font-weight: lighter;
  font-size: 14px;
}

.map__info__area-name,
.map__info__item-name {
  letter-spacing: 4px;
  margin-bottom: 20px;
  
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  text-align: center;
}
.map__info__area-name--lg,
.map__info__item-name--lg {
  font-size: 19.2px;
  text-align: right;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding: 10px;
  background-color: #31343a;
  color: #999;
}
@media screen and (max-width: 620px) {
  .footer {
    flex-direction: column;
  }
}

.footer__column {
  width: 100%;
  background-color: #484d56;
}
.footer__column + .footer__column {
  margin-top: 10px;
}
@media screen and (min-width: 620px) {
  .footer__column {
    width: calc(100% / 3);
  }
  .footer__column + .footer__column {
    margin-top: 0;
    margin-left: 10px;
  }
}

.footer__column-title {
  margin: 10px;
  margin-top: 20px;
  margin-left: 20px;
  letter-spacing: 2px;
  font-family: "Montserrat", sans-serif;
}

.footer__column-text {
  margin: 10px;
  font-family: "Roboto", sans-serif;
  font-weight: lighter;
  line-height: 1.4em;
}

.button-link {
  display: block;
  width: 50%;
  margin: 20px auto;
  padding: 10px 20px;
  border-radius: 5px;
  border: 2px solid #31343a;
  text-align: center;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.6);
  opacity: 0.4;
  cursor: pointer;
}
.button-link:hover {
  opacity: 0.8;
}
.button-link:active {
  opacity: 1;
  transform: translateY(2px);
}

.highlight-indicator {
  position: absolute;
  margin-top: -5px;
  margin-left: -5px;
  z-index: 100;
  display: none;
}
.highlight-indicator.active {
  display: inline-block;
}

.waves {
  -webkit-animation-name: waves;
          animation-name: waves;
}
.waves::before, .waves::after {
  content: "";
  display: inline-block;
  position: absolute;
  background: #3e3d37;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.waves::before {
  -webkit-animation: wave-animate 3s infinite ease-out;
          animation: wave-animate 3s infinite ease-out;
}
.waves::after {
  opacity: 0;
  -webkit-animation: wave-animate 3s 1.5s infinite ease-out;
          animation: wave-animate 3s 1.5s infinite ease-out;
}

@-webkit-keyframes wave-animate {
  0% {
    transform: scale(0);
    opacity: 1;
    transform-origin: center;
  }
  100% {
    transform: scale(3);
    opacity: 0;
    transform-origin: center;
  }
}

@keyframes wave-animate {
  0% {
    transform: scale(0);
    opacity: 1;
    transform-origin: center;
  }
  100% {
    transform: scale(3);
    opacity: 0;
    transform-origin: center;
  }
}