header.scrolled .header__top {
  display: none !important;
}
header#header {
  background: #fff;
}
.header--gradient .header__menu > .menu-item > .menu-link {
  color: #207d57;
}
img.logoFixed {
  display: block !important;
}
.header__main {
  padding-top: 20px !important;
  border-bottom: 1px solid #207d57;
}
.header__logo img.logoRelative {
  display: none;
}
.header.fixed .header__top {
  margin-top: 0px !important;
}
.header.fixed .header__main .header__tools {
  /* display: none !important; */
  margin-bottom: 16px;
}

.box__search__map {
  margin-top: 130px;
}

#map {
  height: calc(100vh - 140px);
  width: 100%;
}

.custom-select-wrapper {
  position: absolute;
  z-index: 1;
  user-select: none;
  margin: 50px;
}

.custom-select {
  position: relative;
  width: 200px;
  cursor: pointer;
}

.custom-select-trigger {
  padding: 10px 16px;
  font-size: 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.2s;
}

.custom-select-trigger::after {
  content: "▼";
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.3s;
}

.custom-select.open .custom-select-trigger::after {
  transform: rotate(-180deg);
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  margin-top: 4px;
}

.custom-select.open .custom-options {
  max-height: 200px;
  opacity: 1;
}

.custom-option {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.custom-option:hover {
  background: #f0f0f0;
}

.custom-option.selected {
  font-weight: bold;
}

.custom-option {
  display: block;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
}
.custom-options {
  display: flex;
  flex-direction: column;
}

.custom-popup {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px;
  font-family: Arial, sans-serif;
  font-size: 14px;
  color: #207d57;
  max-width: 400px;
  word-wrap: break-word;
  position: relative;
  border-color: #ffffff transparent transparent transparent;
  transform: translateX(140px);
}

/* .custom-popup::after {
        content: "";
        position: absolute;
        bottom: -12px;
        left: 7.5px;
        border-width: 12px 12px 0;
        border-style: solid;
        border-color: #ffffff transparent transparent transparent;
    } */

.popup-item {
  margin-bottom: 8px;
}

.popup-header {
  font-weight: bold;
  cursor: default;
}

.popup-body {
  margin-top: 4px;
  line-height: 1.4;
}

.gm-ui-hover-effect {
  display: none !important;
}

.gm-style-iw + div {
  display: none !important;
}

.gm-style-iw {
  overflow: visible !important;
  padding: 0 !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

.gm-style-iw-d {
  overflow: visible !important;
}

.custom-infowindow {
  background: #e5d68f;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.4;
  max-width: 250px;
  position: relative;
  border-color: #dcbf70 transparent transparent transparent;
}

.gm-style-iw-c:focus,
.gm-style-iw-tc:focus,
.gm-style-iw-d:focus {
  outline: none !important;
}

.gm-style-iw-c {
  outline: none !important;
  box-shadow: none !important;
}
.left-filter-map-wrapper {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  background-color: transparent;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.box__search__map {
  position: relative;
}
.left-filter-map-wrapper.active {
  opacity: 1;
  pointer-events: auto;
}
.left-filter-map-inner {
  margin-right: 13px;
  /* border-top-left-radius: 12px;
    border-top-right-radius: 12px; */
  border-radius: 12px;
  background: #fffff1;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  width: 450px;
  padding: 24px;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.4s ease;
  transform-origin: bottom right;
}
.left-filter-map-wrapper.active .left-filter-map-inner {
  transform: scale(1);
  opacity: 1;
}
.filter-map-body-inner {
  display: none;
}
.filter-map-body-inner.active {
  display: block;
}
.filter-map-heading ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 10px;
  border-radius: 12px;
  justify-content: space-between;
  border: 1px solid #70bf54;
}
.filter-map-heading ul li a {
  display: block;
  width: fit-content;
  padding: 8px 50px;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s;
}
.filter-map-heading ul li a.active,
.filter-map-heading ul li a:hover {
  background: #1c7d56;
  color: #fff;
}
.filter-map-heading {
  margin-bottom: 10px;
}
.filter-map-body-inner {
  padding: 0;
  margin: 0;
  list-style: none;
  height: 50vh;
  overflow-y: auto;
  position: relative;
}
.filter-map-body-inner::-webkit-scrollbar {
  width: 0;
}
.filter-map-body-inner li {
  padding: 18px 0;
  border-bottom: 1px solid #207d57;
}
.filter-map-body-inner li a {
  display: flex;
  font-size: 16px;
  color: #207d57;
  font-weight: 500;
  text-transform: capitalize;

  justify-content: space-between;
}
.sub-result-location {
  position: absolute;
  top: 0;
  background: #fffff1;
  height: 200vh;
  overflow-y: auto;
  width: 100%;
  transform: translateX(100%);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}
.sub-result-location.active {
  transform: translateX(0%);
  opacity: 1;
  pointer-events: auto;
}
.sub-result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  margin-top: 10px;
  width: 100%;
}
.sub-result-select {
  display: flex;
  gap: 12px;
  align-items: center;
}
.sub-result-select label {
  color: #222;
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
}
.select-wrap {
  position: relative;
  height: 48px;
  width: 250px;
}
.select-wrap .icon {
  position: absolute;
  left: 15px;
  top: 10px;
}
.select-wrap .arrow {
  position: absolute;
  top: 12px;
  right: 20px;
}
.select-wrap .office_filter {
  width: 250px;
  height: 48px;
  padding-left: 10px;
  border: 0;
  font-size: 16px;
  outline: none;
  border-radius: 12px;
  border-radius: 8px;
  border: 1px solid #e1e1e1;
  background: #fff;
  padding-right: 25px;
  color: rgba(34, 34, 34, 0.5); /* Ẩn mũi tên mặc định */
  -webkit-appearance: none; /* Chrome, Safari, Edge */
  -moz-appearance: none; /* Firefox */
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.dropdown-options {
  display: none;
  position: absolute;
  top: 52px;
  left: -25px;
  width: 275px;
  background: #fff;
  border: 1px solid #207d57;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  z-index: 10;
  padding: 16px;
}

.office_filter.active .dropdown-options {
  display: block;
}
.dropdown-selected {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}
.dropdown-selected svg {
  width: 24px;
  height: 20px;
}
.dropdown-options .dropdown-option {
  cursor: pointer;
  color: #222;
  display: flex;
  gap: 8px;
  align-items: center;
  color: #207d57;
  transition: background 0.2s;
}
.dropdown-option svg {
  width: 24px;
  height: 20px;
}
.dropdown-options .dropdown-option:first-child {
  border-bottom: 1px solid #a1a1a1;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.custom-dropdown.active .dropdown-options {
  display: block;
}
.filter-map-body-inner .sub-result-location li {
  padding: 12px 14px;
  border-bottom: 0;
}
.filter-map-body-inner .sub-result-location li span {
  color: #207d57;
  font-size: 14px;
  font-weight: 700;
}
.filter-map-body-inner .sub-result-location li p {
  font-size: 14px;
  margin-bottom: 0;
  margin-top: 10px;
  display: flex;
  gap: 3px;
  align-items: center;
}
.filter-map-body-inner .sub-result-location li p svg {
  font-size: 18px;
}
.sub-result-body ul {
  list-style: none;
  padding: 0;
}
.open-left-filter {
  cursor: pointer;
  position: absolute;
  right: 13px;
  top: 53px;
  z-index: 9;
  width: 233px;
  height: 51px;
  background-color: #207d57;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
}
.cta-section-wrap {
  z-index: 2;
}
@media (max-width: 1400px) {
  .box__search__map {
    margin-top: 121px;
  }
}
@media (max-width: 996px) {
  .box__search__map {
    margin-top: 85px;
  }
}
@media (max-width: 576px) {
  #map {
    height: calc(100vh - 85px);
    width: 100%;
  }
  .custom-select-wrapper {
    margin: 52px 10px;
  }
  .open-left-filter {
    width: 160px;
    height: 46px;
    font-size: 16px;
  }
  .custom-select {
    width: 180px;
  }
  .left-filter-map-wrapper {
    bottom: 0px;
    justify-content: center;
  }
  .left-filter-map-inner {
    width: 400px;
    margin-right: 0;
  }
  .filter-map-heading ul li a {
    padding: 8px 35px;
  }
  .select-wrap,
  .select-wrap select {
    width: 260px;
  }
  .filter-map-body-inner {
    height: 60vh;
  }
  .sub-result-select label {
    display: none;
  }
}
