#main_col {
  margin: 4rem auto;
}

body.single-introduce #main_col {
  display: block;
}

#side_col {
  width: 30%;
  margin: 0;
  float: left;s
}

#left_col {
  width: 70%;
  margin: auto;
}

#article {
  margin: 0 2rem;
}

#related_post {
  margin: 3rem 2rem 0;
}

.property-description-box > h2,
.property-gallery-box > h2 {
  font-size: 24px;
}

#post_image {
  margin: -1px 0 10px 0;
  padding: 0;
}

.introduce_blocks {
  margin-bottom: 2rem;
  box-shadow: 3px 3px 5px rgb(89 89 89 / 20%);
}

.custom-post-block {
  padding: 2rem;
  border: 1px solid #ccc;
}

.custom-post-block img {
  width: 100%;
}

.property-image-blocks {
  position: relative;
}

.property-rent-tag {
  display: block;
  width: 20%;
  float: right;
  text-align: right;
  font-weight: bolder;
}

.rent-tag {
  padding: 0.5rem 1rem;
  margin-right: 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%);
  /* width: 50%; */
}

.buy-tag {
  padding: 0.5rem 1rem;
  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%);
  /* width: 50%; */
}

.property-name {
  padding: 1rem 0 0.5rem;
  border-bottom: 2px solid rgb(229, 229, 229);
}

.property-name-text {
  font-size: 1vw;
}

#post_header {
  display: flex;
  margin: 0 0 1rem;
  justify-content: space-between;
}

.property-info-first-block,
.property-info-second-block {
  display: flex;
  position: relative;
  align-items: baseline;
}

.property-facility-blocks {
  display: flex;
  position: relative;
  align-items: flex-end;
  padding: 0 1rem;
}

.property-facility-block {
  display: flex;
  flex-grow: 1;
  flex-wrap: wrap;
}

.property-facility-link {
  display: block;
  padding: 0.3rem;
  padding-left: 0;
  padding-bottom: 0;
}

.property-detail-block {
  display: flex;
  flex-grow: 1;
  flex-basis: 5rem;
  align-items: center;
  justify-content: flex-end;
}

.property-detail-link {
  display: block;
  padding: 1rem;
}

.property-detail-button {
  background-color: rgb(23, 26, 169);
  box-shadow: 2px 2px 3px rgb(89 89 89 / 60%);
}

.property-detail-link {
  color: rgb(255, 255, 255);
  font-size: 1vw;
  font-weight: 600;
}

.property-info-blocks {
  padding: 1rem;
  background: rgb(241, 241, 241);
}

.property-info-blocks div[class^="info-"]:not(.info-introduction) {
  display: flex;
  flex-grow: 1;
  flex-basis: 1rem;
}

.property-info-first-block {
  margin-bottom: 1rem;
}

.info-type td:nth-child(1),
.info-area td:nth-child(1) {
  width: 3.5rem;
}

.info-floor td:nth-child(1),
.info-new-construction td:nth-child(1) {
  width: 2.8rem;
}

.info-area {
  align-self: flex-start;
}

.info-introduction {
  display: flex;
  flex-grow: 2;
  flex-basis: 2rem;
  padding: 1rem;
}

.info-introduction img {
  width: 1rem;
}

.info-rent td:nth-child(1) {
  width: 2rem;
}

.introduction-tag {
  display: inline-block;
  padding: 0.5rem;
  margin-bottom: 0.3rem;
  font-weight: bolder;
  border: 2px solid rgb(41, 170, 225);
  border-radius: 0.3rem;
}

.introduction-tag-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-search-title-table td,
.sidebar-button-table {
  vertical-align: middle;
}

.sidebar-search-title-table td:nth-child(1) {
  width: 1%;
}

.sidebar-search-title-table td:nth-child(2),
.sidebar-button-table {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
}

.sidebar-search-title-table td:nth-child(3) {
  width: 1%;
}

.accordion-icon {
  width: 1.5rem;
  padding: 0.3rem;
}

.property-search-label-panel {
  display: none;
}

.first-title-image {
  width: 3rem;
  line-height: 1;
  vertical-align: middle;
}

.sidebar-button-table .first-title-image {
  width: 2rem;
}

/* .second-title-image {
        width: 1rem;
        padding: .5rem;
    } */

.search-button {
  display: flex !important;
  position: relative;
  float: none !important;
  width: 100%;
  height: 3rem;
  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;
}

.search-button:hover {
  background-color: rgba(23 26 169/ 60%);
}

.search-button .search-title-inner-front {
  padding-right: 0.1rem;
}

.search-button .search-title-inner-front .first-title-image {
  width: 2rem;
  padding-top: 0.3rem;
}

.search-button .search-title-inner-end {
  width: auto;
}

.search-title-inner-front {
  justify-content: flex-start;
}

.search-title-inner-end {
  display: flex;
  width: 100%;
  min-width: 8rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  align-items: center;
  justify-content: center;
}

.custom-checkbox:after {
  -webkit-transition: border-color 0.2s linear;
  transition: border-color 0.2s linear;
  position: absolute;
  top: 0px;
  left: 0px;
  display: block;
  background: rgb(231, 231, 230);
  width: 20px;
  height: 20px;
  content: "";
}

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

.property-search-blocks
  input[type="checkbox"]:checked
  + .custom-checkbox:after {
  content: url(https://www.e-stag-e.info/apaman/wp-content/uploads/2021/04/check-mark.png);
  width: 16px;
  height: 16px;
  padding: 2px;
}

.rent-dropdown-blocks {
  width: 95%;
  margin: auto;
}

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

.archive_filter {
  /* display: inline-block; */
  display: block;
  margin: 0;
  padding: 2rem;
  background: rgb(255, 255, 255);
}

.archive_filter .property-search-label label {
  position: relative;
  float: none !important;
  padding: 0 0 0 28px !important;
}

.property-search-label {
  position: relative;
  margin-bottom: 0.5rem;
}

.search-title-text,
.sidebar-contact-text {
  white-space: pre;
  line-height: 1;
  vertical-align: middle;
}

#submit {
  display: none;
}

.sidebar-contact-blocks {
  display: block;
  padding: 2rem;
}

.sidebar-contact-link {
  /* display: block;
        padding: 2rem;
        transition: all .3s ease-in-out; */
  display: flex;
  position: relative;
  width: auto;
  height: 3.2rem;
  padding: 0 0.5rem;
  align-items: center;
  justify-content: center;
  color: rgb(255, 255, 255);
  background: rgb(41, 170, 225);
  border: none;
  border-radius: 0.5rem;
  transition: all 0.3s ease-in-out;
}

.sidebar-contact-link:hover {
  opacity: 0.6;
}

.sidebar-contact-block {
  display: flex;
  /* position: relative;
        width: auto;
        height: 3.2rem;
        padding: 0 .5rem;
        align-items: center;
        justify-content: center;
        color: rgb(255, 255, 255);
        background: rgb(41, 170, 225);
        border: none;
        border-radius: .5rem; */
}

.sidebar-contact-inner-front {
  line-height: 1;
  padding-right: 0.5rem;
  justify-content: flex-start;
}

.sidebar-contact-inner-front .first-title-image {
  width: 2rem;
}

.sidebar-contact-inner-end {
  display: flex;
  width: auto;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(255, 255, 255);
  align-items: center;
  justify-content: center;
}

#post_title {
  margin: 0 !important;
  width: 80%;
}

.single-introduce #article #post_image {
  margin: 0 auto 1rem;
}

.photo-gallery-images > div:after {
  content: "";
  display: table;
  clear: both;
}

div[class*="-col-"] {
  float: left;
  width: 32%;
  padding: 0.3rem;
  height: 160px;
  /*fix size images*/
}

.photo-gallery-images img {
  width: 100%;
  height: 100%;
}

.property-detail-text h2 {
  color: rgb(255, 255, 255);
  background-color: rgb(41, 170, 225);
  padding: 1rem;
}

.bold-text {
  font-weight: bold;
}

.separator-line {
  border-bottom: 1px solid black;
  margin: 1rem 0;
}

.property-detail-box {
  border: 1px solid rgb(203, 203, 203);
  margin: 1rem 0;
}

.rent-buy-text {
  color: white;
}

.property-description-box {
  margin: 1rem 0;
  line-height: 1.6rem;
}

@media screen and (max-width: 1024px) {
  #main_col {
    margin-top: 4rem !important;
  }

  #article {
    margin: 0;
  }

  .archive_filter {
    padding: 0 2rem;
  }

  .property-rent-tag {
    width: 30%;
    font-size: 0.7rem;
  }
}

@media screen and (max-width: 991px) {
  .archive_filter {
    padding: 0 1rem;
  }

  .sidebar-contact-blocks {
    padding: 0 1rem;
    margin: 1.5rem auto 0;
  }

  .property-info-first-block,
  .property-info-second-block {
    font-size: 90%;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px) {
  .sidebar-contact-blocks {
    padding: 0 1rem;
    margin: 1.5rem auto 0;
  }

  .search-title-text,
  .sidebar-contact-text {
    white-space: pre-line;
  }

  .info-type td:nth-child(1),
  .info-area td:nth-child(1),
  .info-floor td:nth-child(1),
  .info-new-construction td:nth-child(1),
  .info-rent td:nth-child(1) {
    width: 1px;
    white-space: nowrap;
  }

  .property-rent-tag {
    width: 40%;
  }
}

@media screen and (max-width: 767px) {
  div[class*="-col-"] {
    width: 70%;
    float: none;
    margin-left: auto;
    margin-right: auto;
  }

  #main_col {
    display: block;
  }

  #main_col .archive_filter {
    display: block;
    padding: 0;
  }

  #main_col .archive_filter label {
    float: none;
  }

  #side_col {
    width: 100%;
    margin: 0;
  }

  #left_col {
    width: 100%;
    padding: 0;
    margin-top: 2rem;
  }

  .sidebar-contact-blocks {
    padding: 1rem 0;
  }

  .rent-dropdown-blocks {
    width: 100%;
  }

  #post_title {
    width: 70%;
  }

  .property-rent-tag {
    width: 30%;
  }

  .property-info-first-block,
  .property-info-second-block {
    flex-wrap: wrap;
  }

  .property-info-first-block {
    margin-bottom: 0;
  }

  .property-info-blocks div[class^="info-"]:not(.info-introduction) {
    flex-basis: 100%;
  }

  .property-info-blocks div[class^="info-"]:not(.info-introduction) {
    padding-bottom: 1rem;
  }

  .info-rent td:nth-child(1) {
    width: 2.8rem;
  }
}

@media screen and (max-width: 499px) {
  #post_title {
    width: 50%;
  }

  .property-rent-tag {
    width: 50%;
  }
}

/* ======================= FRANKY 2025-11-19 ============== */
.property-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 columns by default */
  gap: 10px;
}

@media (max-width: 768px) {
  .property-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .property-gallery {
    grid-template-columns: 1fr;
  }
}

.property-gallery-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 16/9;
}

.status-btn {
  display: flex;
  padding: 8px 16px;
  background: #fff;
  border: 2px solid #eee;
  border-radius: 50px;
  text-decoration: none;
  color: #555 !important;
  font-size: 14px;
  transition: all 0.2s;
}

.status-btn.active {
  background: var(--primary-blue);
  color: #fff !important;
  border-color: var(--primary-blue);
}

.status-btn:hover {
  border-color: var(--primary-blue);
  color: var(--primary-blue);
}

.status-btn.active:hover {
  color: #fff;
}

/* Reset heading styles in property description box */
.property-description-box h1,
.property-description-box h2,
.property-description-box h3,
.property-description-box h4,
.property-description-box h5,
.property-description-box h6 {
    font-size: revert;
    font-weight: revert;
    line-height: revert;
    margin: revert;
}
.property-description-box h1 { font-size: 2em !important; }
.property-description-box h2 { font-size: 1.5em !important; }
.property-description-box h3 { font-size: 1.17em !important; }
.property-description-box h4 { font-size: 1em !important; }
.property-description-box h5 { font-size: 0.83em !important; }
.property-description-box h6 { font-size: 0.67em !important; }

.property-description-text {
    font-family: inherit;
    font-size: inherit;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.property-description-box p {
    margin: 0 0 1em;
    line-height: 1.6;
}