@media only screen and (min-width: 1025px) {
  .has_header_content #header_top {
    background-color: rgba(255, 255, 255, 0.5) !important;
    border-bottom: unset;
  }
}

#main_col {
  margin: 30px auto 60px;
}

.property-rent-tag {
  position: absolute;
  top: 5%;
  font-weight: bolder;
  z-index: 100;
}

.rent-tag {
  padding: 0.5vw 1vw;
  margin-bottom: 0.5rem;
  text-align: center;
  color: rgb(255, 255, 255);
  background-color: rgb(211, 193, 155);
  border: 2px solid rgb(255, 255, 255);
  border-radius: 0.2rem;
  box-shadow: 2px 2px 3px rgb(89 89 89 / 80%);
}

.buy-tag {
  padding: 0.5vw 1vw;
  color: rgb(255, 255, 255);
  text-align: center;
  background-color: rgb(23, 26, 169);
  border: 2px solid rgb(255, 255, 255);
  border-radius: 0.2rem;
  box-shadow: 2px 2px 3px rgb(89 89 89 / 80%);
}

.top-content-button {
  display: flex;
  margin-left: auto;
  margin-right: auto;
}

.top-button {
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 16px 32px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  width: 20rem;
  /*18vw*/
  border-radius: 10px;
}

.top-button1 {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.top-button1:hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

.top-button2 {
  background-color: #f0f0f0;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.top-button2:hover {
  background-color: var(--primary-color);
  color: white;
}

.top-button3 {
  background-color: var(--primary-color);
  color: #fff;
  border: 2px solid var(--primary-color);
}

.top-button3:hover {
  background-color: #f0f0f0;
  color: var(--primary-color);
}

.botton_circle {
  background-color: #fff;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  width: 130px;
  height: auto;
  box-shadow: 2px 2px #ccc;
}

.botton_circle:hover {
  background-color: #f0f0f0;
}

.top-button-contact,
.top-button-contact-jp,
.top-button-contact-th {
  background-color: var(--primary-color);
  border: none;
  color: white;
  padding: 15px 30px;
  text-align: center;
  text-decoration: none;
  display: flex;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
  width: fit-content;
  border-radius: 1px;
  max-width: max-content;
  margin-left: 0;
  margin-right: auto;
}

@media screen and (max-width: 1024px) {
  .top-button-mail-th {
    padding: 15px 48px !important;
  }

  .top-button-phone-th {
    padding: 15px 33px !important;
  }
}

.top-button-mail,
.top-button-mail-th,
.top-button-mail-jp {
  background-color: #f0f0f0;
  color: var(--primary-color);
  border: 1px solid #f0f0f0;
  margin-left: auto;
  margin-right: auto;
}

.top-button-mail > h3,
.top-button-mail-th > h3,
.top-button-mail-jp > h3 {
  margin: auto;
  font-size: 1rem;
}

.top-button-mail:hover,
.top-button-mail-th:hover,
.top-button-mail-jp:hover {
  background-color: #666;
  color: var(--primary-color);
}

.top-button-phone-jp,
.top-button-phone-th {
  background-color: #f0f0f0;
  color: var(--primary-color);
  border: 1px solid #f0f0f0;
  margin-left: auto;
  margin-right: auto;
}

.top-button-phone-jp > h3,
.top-button-phone-th > h3 {
  margin: auto;
  font-size: 1rem;
}

.top-button-phone-jp:hover,
.top-button-phone-th:hover {
  background-color: #666;
  color: var(--primary-color);
}

.contact_container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  max-width: 1200px;
}

.rent_buy_block {
  padding: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 2rem;
}

.title_post {
  font-size: 20px;
}

.botton_post {
  background-color: #1719aa;
  width: 125px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  padding: 15px;
  margin-top: 34px;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 15px;
}

.botton_post a {
  color: #fff;
}

.botton_post:hover {
  background-color: #666;
  color: var(--primary-color);
}

.main_container {
  width: 100%;
  max-width: fit-content;
  margin: 0;
  position: relative;
  margin-left: auto;
  margin-right: auto;
}

.contain_bg {
  max-width: inherit;
}

.contain_bg_blue {
  background-color: var(--primary-color);
  max-width: inherit;
  color: #fff;
  padding: 20px;
}

.row-contact {
  margin-left: 30px;
  margin-right: 30px;
}

.contain_bg_gray {
  background-color: #e9e9e9;
  max-width: inherit;
}

/*.top_contact_box{
                    margin-bottom: 5px;
                    position: absolute;
                    margin-top: -4vw;
                    padding-bottom: 0px;
                    }*/
.top-grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 20px 0px;
}

.top-grid-container > div {
  text-align: center;
  padding: 0;
}

.top-grid-container > div > .area-block > img {
  width: 100%;
  max-width: max-content;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  /*height: 120px;*/
}

.area-block > h3 {
  background-color: #e9e9e9;
  padding: 15px;
  font-size: 18px;
}

.area-block > h3 > a {
  color: var(--primary-color);
}

.top-grid-container-propertyty {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 20px 0px;
}
.top-grid-container-propertyty > div {
  text-align: center;
  padding: 0;
}

.top-grid-container-propertyty > div > .area-block > img {
  width: 100%;
  max-width: max-content;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  /*height: 120px;*/
}

/* Tablet */
@media only screen and (min-width: 600px) {
  .top-grid-container-propertyty {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop */
@media only screen and (min-width: 1024px) {
  .top-grid-container-propertyty {
    grid-template-columns: repeat(6, 1fr);
  }
}

.top-grid-container2 {
  display: grid;
  grid-template-columns: auto auto auto auto auto auto;
  grid-gap: 10px;
  padding: 10px;
}

.top-grid-container2 > div {
  text-align: center;
  padding: 20px 0;
}

.top-grid-container-two {
  display: grid;
  grid-template-columns: auto auto;
  grid-gap: 0px;
  padding: 0px;
}

.top-grid-container-two > div > img {
  width: 50vw;
  height: 100%;
  /* max-height: max-content; */
}

.top-grid-container-two > div {
  text-align: left;
  padding: 0;
}

div > .item_block_left {
  background-color: #eee;
  /* padding: 10px 10px; */
  /* margin: auto; */
  /*width: fit-content;*/
  height: 100%;
  /* max-height: 96%; */
}

.content_position {
  margin-top: 7vw;
  margin-bottom: 7vw;
  padding-left: 7vw;
  padding-right: 7vw;
}

.content-title-left {
  /*text-align:left;*/
  max-width: max-content;
  text-align: left;
}

.content-title-left h2 {
  font-size: 34px;
  line-height: 2.5rem;
}

.content-title-left p {
  line-height: 1.9rem;
  font-size: 1rem;
}

.content-title-center {
  text-align: center;
  line-height: 2rem;
}

.content-title-center h2 {
  font-size: 34px;
}

.content-title-center p {
  font-size: 1rem;
  line-height: 1.5rem;
}

.row {
  padding-bottom: 30px;
  padding-top: 30px;
}

.row::after {
  content: "";
  clear: both;
  display: block;
}

.cb_content-carousel .cb_headline,
.cb_content-carousel .cb_desc {
  color: #444;
}

.cb_content-carousel .slick-arrow {
  width: 30px;
  height: 38px;
  padding: 0;
  overflow: hidden;
  text-align: center;
  font-family: "design_plus";
  color: #fff;
  font-size: 25px;
  line-height: 40px;
  margin-top: -30px;
  position: absolute;
  top: 43%;
  z-index: 2;
  cursor: pointer;
  background: var(--primary-color);
  border: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  -ms-box-sizing: border-box;
  -o-box-sizing: border-box;
  box-sizing: border-box;
}

.cb_content-carousel .item {
  background-color: #f7f7f7;
  border: var(--primary-color) 0px solid;
  padding: 0px;
  box-shadow: 2px 10px #ddd;
}

#header_search select:focus,
.header_search_inputs .chosen-with-drop .chosen-single span,
#footer_contents a:hover,
#footer_nav a:hover,
#footer_social_link li:hover:before,
#header_slider .slick-arrow:hover,
.cb_content-carousel .slick-arrow:hover {
  color: #000;
}

/* small (mobile, 280px and up) */
@media only screen and (min-width: 280px) {
  .top-button {
    width: 14rem;
  }

  .top-grid-container-two {
    display: block;
  }

  .top-grid-container-two > div > img {
    width: 100%;
  }

  .top-grid-container2 {
    grid-template-columns: auto auto;
    padding: 0px;
  }

  .top-grid-container2 > div {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
    margin-top: 20px;
  }

  .botton_circle p {
    font-size: 0.6rem;
  }
}

/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
  .top-grid-container {
    grid-template-columns: auto;
  }

  .top-grid-container2 > div {
    padding: 50px 0;
  }

  .botton_circle {
    width: 130px;
    font-size: 0.8rem;
    height: 30px;
  }

  .botton_circle img {
    width: 15vw;
    padding-bottom: 1px;
    margin-top: -20px;
  }

  .botton_circle p {
    font-size: 0.6rem;
  }

  .contain_bg_blue {
    max-width: fit-content;
    padding: 0 20px;
  }
}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
}

@media only screen and (max-width: 767px) {
  #header_slider .caption .catchphrase {
    text-align: center !important;
  }

  .cb_content .cb_desc {
    text-align: center !important;
  }
}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
  .top-button {
    width: 14rem;
  }

  .top-grid-container2 {
    display: grid;
    grid-template-columns: auto auto auto;
  }

  .top-grid-container2 > div {
    padding: 20px 0;
  }

  .botton_circle {
    width: 130px;
    font-size: 0.8rem;
    height: 90px;
  }
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
  .top-button {
    width: 16rem;
  }

  .top-grid-container2 {
    display: grid;
    grid-template-columns: auto auto auto;
  }

  .top-grid-container2 > div {
    padding: 20px 0;
  }

  .botton_circle {
    width: 130px;
    font-size: 1rem;
  }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
  .top-button {
    width: 18rem;
  }

  .top-grid-container-two {
    display: grid;
  }

  .top-grid-container2 {
    display: grid;
    grid-template-columns: auto auto auto auto auto auto;
  }

  .top-grid-container2 > div {
    padding: 20px 0;
  }

  .botton_circle {
    width: 140px;
    font-size: 0.8rem;
    height: 100px;
  }
}

/* Map style */

/* สไตล์กลุ่มปุ่ม */
.button-group {
  display: flex;
  gap: 12px;
  width: auto;
  background: white;
  padding: 10px;
}

.map-btn {
  padding: 8px 24px;
  border: 2px solid #ddd;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.map-btn.active {
  background: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

/* ส่วนแสดงผลแผนที่ */
.map-content {
  display: none;
  /* ซ่อนไว้ก่อน */
  width: 100%;
  overflow: hidden;
}

.map-content.active {
  display: block;
  /* แสดงเฉพาะอันที่มี class active */
}

.label {
  font-size: 12px;
  fill: white;
  pointer-events: none;
  /* ป้องกันตัวหนังสือบังการคลิก */
}

.map {
  border: 4px solid var(--primary-color);
  border-radius: 0px 5px 5px 5px;
}

/* Container หลักที่คุมทั้งรูปและ SVG */
.map-overlay-wrapper {
  position: relative;
  width: 100%;
  /* ขยายตามหน้าจอ */
  max-width: 1200px;
  /* จำกัดขนาดสูงสุดบนจอคอม */
  margin: 0 auto;
}

/* รูปภาพพื้นหลัง */
.map-background-img {
  display: block;
  width: 100%;
  /* ให้รูปกว้างเต็ม Container */
  height: auto;
  /* ให้ความสูงปรับตามสัดส่วนภาพจริง */
}

/* แผ่น SVG ที่ซ้อนทับ */
.map-overlay-svg {
  width: 100%;
  /* บังคับให้ SVG กว้างเท่ารูป */
  height: 100%;
  /* บังคับให้ SVG สูงเท่ารูป */
  pointer-events: none;
  /* ป้องกัน SVG ทั้งแผ่นบังการคลิก (ถ้าจำเป็น) */
}

/* เฉพาะพื้นที่ที่ต้องการให้คลิกได้ */
.land-plot {
  pointer-events: auto;
  cursor: pointer;
}

.clickable-zone {
  fill: rgba(0, 150, 255, 0);
  /* transition: all 0.1s ease; */
  cursor: pointer;
}

.clickable-zone:hover {
  fill: var(--primary-color);
  opacity: 0.3;
}

#myDIV {
  position: relative;
  width: 100%;
  /* margin-left: 30px; */
  top: -72px;
  display: none;
}

#mobile-site-map {
  display: none;
}

#showarrow {
  display: none;
  text-align: center;
  font-size: 30px;
  font-family: monospace;
}

@media (max-width: 600px) {
  .map-outer-container {
    overflow-x: auto;
    /* ยอมให้ไถซ้ายขวา */
  }

  .map-overlay-wrapper {
    width: 800px;
    /* บังคับความกว้างขั้นต่ำบนมือถือเพื่อให้เห็นรายละเอียด */
  }
}

/* Accordion for mobile map */
.panelaccordion {
  padding: 0 18px;
  background-color: white;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}

.text-sidebar-show-hide {
  display: flex;
  width: 100%;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  align-items: center;
  justify-content: left;
}

.show-hide-search-mobilesite {
  padding: 10px 10px 10px 10px;
  width: 88%;
  margin: 0 auto;
  background-color: #fff;
  transition: 0.4s;
  border: 2px solid rgb(41, 170, 225);
  border-radius: 10px;
}

.search-box {
  width: auto;
  margin-bottom: 10px;
}

.conditions-box {
  margin-top: 0;
  margin-bottom: 10px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  border-radius: 5px;
  overflow: hidden;
}

.box-title-icon {
  width: 0px;
  float: left;
}

.conditions-box dt {
  cursor: pointer;
  background-color: rgb(41, 170, 225);
  display: block;
  overflow: hidden;
  zoom: 1;
  padding: 5px;
  background-image: url(https://www.e-stag-e.info/apaman/wp-content/uploads/2021/04/bt-accordion-01.png);
  background-size: 24px 24px;
  background-position: 96% center;
  background-repeat: no-repeat;
}

.search-box .conditions-box dt h3 {
  font-weight: 600;
  line-height: 50px;
  font-size: 1.2rem;
  color: white;
}

#hide-show-content-prop-I,
#hide-show-content-prop-II,
#hide-show-content-prop-III,
#hide-show-content-prop-IV {
  display: none;
}

.search-box ul {
  padding: 10px;
}

.search-box ul li {
  border-bottom: dotted 1px #ddd;
  width: auto;
  text-align: initial;
}

.search-box ul input[type="checkbox"] {
  display: none;
}

.search-box ul .check_css02 {
  -webkit-transition: background-color 0.2s linear;
  transition: background-color 0.2s linear;
  position: relative;
  display: inline-block;
  padding: 0 0 0 28px;
  vertical-align: middle;
  cursor: pointer;
  font-size: 14px;
  line-height: 30px;
}

.check_css02::before {
  -webkit-transition: opacity 0.2s linear;
  transition: opacity 0.2s linear;
  position: absolute;
  top: 50%;
  left: 6px;
  display: block;
  margin-top: -7px;
  width: 5px;
  height: 9px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  content: "";
  opacity: 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
  z-index: 1;
}

.check_css02::after {
  -webkit-transition: border-color 0.2s linear;
  transition: border-color 0.2s linear;
  position: absolute;
  top: 50%;
  left: 0px;
  display: block;
  margin-top: -10px;
  background: #bbdafe;
  width: 20px;
  height: 20px;
  content: "";
}

input[type="checkbox"]:checked + .check_css02:before {
  opacity: 1;
}

.search-button {
  display: flex !important;
  position: relative;
  width: 90%;
  height: 4rem;
  padding: 0 0.5rem !important;
  margin: 1.5rem auto 0;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  background: rgb(23, 26, 169);
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}

#submit {
  display: none;
}

.rent-dropdown {
  width: 100%;
  height: 2.3rem;
  margin: auto;
  border-radius: 0.3rem;
  border-color: rgb(178, 178, 178);
}

.search-title-inner-front img {
  height: 48px;
  width: 48px;
}

/* Start img-map mobile site -- 06/01/2021 start */
.map-img-mobile img {
  width: 100%;
  max-width: 320px;
  /* set margin-bottom start 06/02/2021 Start */
  margin-bottom: 10px;
  /* set margin-bottom start 06/02/2021 end */
}

/* Table in accordion */
.retablebody {
  font-family: arial, sans-serif;
  border-collapse: collapse;
  width: 100%;
  margin-top: 20px;
}

.retr {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

.retd {
  border: 1px solid #dddddd;
  text-align: left;
  padding: 8px;
}

.reinput {
  margin-left: -50px;
}

.relabel {
  margin-left: 30px;
}

/* Top page for IE -- Edit by Korn E-Stage / Date 05/27/2021 Start */
@media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {
  .top-grid-container {
    margin: 0 auto;
    display: flex;
  }

  .top-grid-container .item2,
  .top-grid-container > div {
    margin: 0 auto;
  }

  .top-grid-container2 {
    display: flex;
  }

  .top-grid-container-two {
    display: flex;
  }

  .top-grid-container-two .item_block_left {
    padding: 0 !important;
  }

  .top-grid-container > div > .area-block > img {
    width: 100%;
    max-width: 50vw;
  }

  .top-button-mail-th > h3,
  .top-button-phone-th > h3,
  .top-button-mail-jp > h3,
  .top-button-phone-jp > h3 {
    margin: 8px 4px !important;
  }
}
/* Top page for IE -- Edit by Korn E-Stage / Date 05/27/2021 end */

/* Preview text on image map start  */
.preview-area-north {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted black;
}

.preview-area-north .preview-area-north-text {
  visibility: hidden;
  width: 120px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px 0;

  /* Position the tooltip */
  position: absolute;
  z-index: 1;
}

.preview-area-north:hover .preview-area-north-text {
  visibility: visible;
}
/* Preview text on image map end 06042021 */
