/* CSS Map */

.map-iframe {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  width: 0%;
  height: 100%;
  transition: all 0.5s ease-in-out;
  background-color: black;
}
.map-iframe.active {
  width: 100%;
}
.map-iframe iframe {
  width: 100%;
  height: 100%;
  
}

.map-iframe .map-iframe-close {
  position: absolute;
  top: 30px; /* Chỉnh vị trí nút ở đây */
  right: 100px;
  padding: 5px 10px;
  width: 40px;

  background-color: white; /* Đây là màu nền */
  border: none;
  border-radius: 10px;

  display: flex;
  justify-content: center;
  align-items: center;
  transition: width 0.2s linear;
  cursor: pointer;
}

.map-iframe .map-iframe-close .fa-times-circle {
  font-size: 18px;
  font-weight: 600;
  color: red; /* Đây là màu nút X */
}
.map-iframe .map-iframe-close span {
  font-size: 16px;
  font-weight: 700;
  color: black; /* Đây là màu chữ */

  opacity: 0;
  width: 0;
  margin-left: 0;
  pointer-events: none;
  transition: opacity 0.1 linear, width 0.5s linear;
}

.map-iframe .map-iframe-close:hover {
  width: 100px;
}

.map-iframe .map-iframe-close:hover span {
  margin-left: 10px;
  width: auto;
  opacity: 1;
  pointer-events: all;
}

@media screen and (max-width: 767.98px) {
  .map-iframe.active {
    width: 90%;
  }
}
