/* 自訂樣式 */

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#house-list{
  min-height: 100%;
}

.container {
  display: flex;
  flex-direction: row;
  padding: 20px;
  border-bottom: 1px solid lightgray;
  margin-top: 10px;
  margin-left: 12%;
  margin-right: 12%;
}

.left {
  margin-right: 20px;
  margin-bottom: 5px;
}

.left img {
  width: 240px;
  height: 180px;
  object-fit: cover;
  border-radius: 5px;
}

.center {
  flex: 1;
  margin-right: 20px;
}

.text-name {
  color: black;
  font-weight: bold;
  display: flex;
  align-items: center;
  font-size: 24px;
}

.tag-block {
  padding-top: 4px;
  padding-bottom: 4px;
}

.tag {
  display: inline-block;
  padding: 3px 8px;
  background-color: #f5f5f5;
  color: black;
  border-radius: 5px;
  margin-right: 5px;
  font-size: 12px;
}

.address,
.info,
.agent {
  color: gray;
  margin: 8px 0;
  display: flex;
  align-items: center;
}
.text-location {
  margin-right: 8px;
}

.address .fas,
.info .fas,
.agent .fas {
  width: 16px;
  height: 16px;
  text-align: center;
  margin-right: 8px;
}

.right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 20px;
}

.price ,.text-unit{
  color: gray;
  font-size: 16px;
}

.highlight-text-price {
  font-size: 36px;
  color: red;
  font-weight: bold;
}

.bar {
  position: relative;
  margin-left: 12px;
  vertical-align: middle;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bar::before {
  content: "";
  display: block;
  width: 1px;
  height: 100%;
  background-color: black;
  position: absolute;
  top: 0;
  left: -6px; /* 调整距离文字的位置 */
}


@media only screen and (max-width: 480px) {
  /* 需要根據您的需求調整此處的最小寬度 */
  .container {
    flex-direction: column;
    margin-left: 0px;
    margin-right: 0px;
  }

  .text-name {
    margin-top: 4px;
  }

  .left {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 16:9 圖片的高度是寬度的 56.25% */
  }

  .left img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .right {
    width: 100%;
    padding: 0px;
    flex-direction: row;
    justify-content: space-between; /* 將子項目靠左右，並在中間留出空白 */
    align-items: center; /* 將子項目在交叉軸上（垂直方向）置中 */
  }

  .highlight-text-price {
    font-size: 24px;
    color: red;
  }

  .text-unit{
    margin-left: 8px;
  }
}
