:root {
  --primary-color-property: #08a579;
  --secondary-color-property: #eb1111;
  --white: #fff;
  --gray: #f3f3f3;
  --fa: "Font Awesome 5 Free";
}

.property-list > h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #000;
}

.property-btn {
  margin: 80px auto;
  display: block;
  width: 300px;
  background-color: #666;
  color: #fff;
  border-radius: 60px;
  text-align: center;
  font-size: 1.2rem;
  padding: 0.5rem;
}

.property-item {
  margin-bottom: 20px;
  font-size: 15px;
}
.property-item a {
  display: flex;
  flex-wrap: wrap;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
.property-item a h2 {
  width: 100%;
  border-bottom: 2px solid #ccc;
  font-size: 1.1rem;
}
.property-item a .row {
  display: grid;
  grid-template-columns: 35% 1fr;
  gap: 30px;
}
.property-item a .btn {
  width: 300px;
  background-color: var(--primary-color-property);
  color: var(--white);
  text-align: center;
  margin: 30px auto 0;
  border-radius: 20px;
  padding: 0.5rem;
}
.property-item a .property-thumbnail {
  height: 200px;
}
.property-item a .property-thumbnail img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.property-item a .text {
  flex: 1;
  padding-left: 30px;
}
.property-item a .text dl {
  display: flex;
  flex-wrap: wrap;
}
.property-item a .text dl dt {
  width: 100px;
  border-bottom: 1px dotted #ccc;
  padding: 0.2rem 0;
  display: flex;
  align-items: center;
}
.property-item a .text dl dd {
  width: calc(100% - 100px);
  border-bottom: 1px dotted #ccc;
  padding: 0.2rem 0;
}
.property-item a .text dl dd .price-text {
  font-size: 1.3rem;
  font-weight: 700;
  color: red;
}

.property-surrounding {
  margin-bottom: 1rem;
  background-color: #eee;
  padding: 1rem;
  border-radius: 6px;
}
.property-surrounding ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.8rem;
}
.property-surrounding ul li {
  background-color: #666;
  color: #fff;
  padding: 0 1rem;
  border-radius: 6px;
}

.property-images {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.property-main-image {
  margin-bottom: 20px;
}
.property-main-image img {
  max-height: 500px;
}

.property-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.property-thumbnails img {
  cursor: pointer;
  width: 100px;
  height: auto;
  border: 1px solid #ddd;
  padding: 5px;
}
@media screen and (max-width: 486px) {
  .property-thumbnails img {
    width: 60px;
  }
}
.property-thumbnails img.current {
  border: 1px solid #333;
}
.property-thumbnails img:hover {
  border: 1px solid #333;
}

.property-price-block {
  margin-bottom: 1rem;
}
.property-price-block .price-dl {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  gap: 10px;
}
.property-price-block .price-dl dt {
  font-size: 1.1rem;
  font-weight: 700;
}
.property-price-block .price-dl dd {
  font-size: 1.5em;
  color: #eb1111;
  font-weight: 700;
}
.property-price-block .price-list {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
@media screen and (max-width: 768px) {
  .property-price-block .price-list {
    gap: 10px;
  }
}
.property-price-block .price-list li dl {
  display: flex;
  align-items: center;
  gap: 10px;
}
.property-price-block .price-list li dl dt {
  font-size: 0.9rem;
  background-color: #eee;
  padding: 0 1rem;
}
.property-price-block .price-list li dl dd {
  font-size: 1.1em;
  font-weight: 700;
}

@media screen and (max-width: 768px) {
  .property-map iframe {
    height: 240px;
  }
}

.property-detail {
  font-size: 15px;
  max-width: 1100px;
  margin: 0 auto;
  width: 92%;
}
@media screen and (max-width: 486px) {
  .property-detail {
    font-size: 13px;
  }
}
.property-detail__heading {
  border-bottom: 2px solid #000;
  margin-bottom: 1.5rem;
}
.property-detail__heading h1 {
  font-size: 1.3rem;
  padding-bottom: 15px;
}
.property-detail__heading table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse;
  background-color: #fff;
}
.property-detail__heading table th,
.property-detail__heading table td {
  padding: 10px;
  border: 1px solid #ccc;
  text-align: center;
}
@media screen and (max-width: 486px) {
  .property-detail__heading table th,
.property-detail__heading table td {
    padding: 5px;
  }
}
.property-detail__heading table .text {
  display: block;
  font-size: 0.9rem;
}
.property-detail__heading table .price {
  color: #eb1111;
  font-size: 1.2rem;
  font-weight: 700;
}
.property-detail__heading table th {
  background-color: var(--gray);
}
@media screen and (max-width: 486px) {
  .property-detail__heading .sp-table {
    overflow-x: auto;
  }
  .property-detail__heading .sp-table table {
    table-layout: fixed;
    width: 200%;
    white-space: nowrap;
  }
}
.property-detail .property-title {
  border-bottom: 2px solid #040000;
  font-size: 1.2rem;
  padding: 0.5rem 0;
}
.property-detail .facility-list {
  display: flex;
  margin-bottom: 20px;
  gap: 5px;
}
.property-detail .facility-list li {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  background-color: #eee;
}
.property-detail .real-estate-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border-top: 1px solid #ccc;
}
.property-detail .real-estate-table th,
.property-detail .real-estate-table td {
  border-bottom: 1px solid #ccc;
  padding: 0.5rem 1rem;
  font-weight: 500;
}
.property-detail .real-estate-table th {
  width: 200px;
  background-color: #eee;
}
@media screen and (max-width: 486px) {
  .property-detail .real-estate-table th {
    width: 150px;
  }
}

.custom-search {
  position: fixed;
  right: 5vw;
  top: 120px;
  z-index: 999;
  background-color: #fff;
  border-radius: 10px;
  font-size: 0.9rem;
  overflow: hidden;
  padding-bottom: 20px;
  border: 1px solid #575757;
}
.custom-search h2 {
  text-align: center;
  background-color: #575757;
  color: #fff;
  padding: 0.5rem 1rem;
  font-size: 1.1rem;
}
.custom-search h3 {
  color: #575757;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}
.custom-search label {
  font-size: 0.8rem;
  color: #575757;
  font-weight: 500;
}
.custom-search .search-section {
  padding: 0 20px;
  margin-bottom: 1rem;
}
.custom-search .search-section .category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.custom-search .search-section .category-list li span {
  position: relative;
  display: inline-block;
  border: #666 1px solid;
  border-radius: 60px;
  padding: 0 10px;
}
.custom-search .search-section .category-list li input {
  display: none;
}
.custom-search .search-section .category-list li input:checked + span {
  background-color: #575757;
  color: #fff;
}
.custom-search select {
  background-color: #fff;
}
.custom-search button {
  display: block;
  border: none;
  margin: 0 auto;
  background-color: #575757;
  color: #fff;
  cursor: pointer;
  width: 100px;
  border-radius: 60px;
  font-size: 1.1rem;
}
.custom-search .property-category {
  margin: 20px 20px 0;
  border: 1px solid #fff;
  border-radius: 10px;
  padding: 10px;
}
.custom-search .property-category ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.custom-search .property-category ul li a {
  background-color: #0e8362;
  color: #fff;
  border-radius: 60px;
  display: block;
  padding: 0 10px;
  font-size: 0.8rem;
  box-shadow: 0 3px 0 #0b7456;
}

.search-conditions {
  background-color: #eee;
  padding: 15px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.search-conditions h2 {
  margin-bottom: 0;
}
.search-conditions ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.search-conditions ul strong {
  font-weight: 500;
}

.property-layout {
  display: flex;
  justify-content: space-between;
  max-width: 1200px;
  width: 96%;
  margin: 0 auto;
  padding: 80px 0;
}
@media screen and (max-width: 768px) {
  .property-layout {
    flex-direction: column;
  }
}
.property-layout__main {
  width: 70%;
}
@media screen and (max-width: 768px) {
  .property-layout__main {
    width: 100%;
  }
}
.property-layout__sidebar {
  width: 25%;
}
@media screen and (max-width: 768px) {
  .property-layout__sidebar {
    width: 100%;
  }
}
.property-layout__sidebar .custom-search {
  position: -webkit-sticky;
  position: sticky;
  width: auto;
}

.property-pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-top: 40px;
}
.property-pagination a,
.property-pagination span {
  background-color: #08a579;
  color: #fff;
  display: block;
  min-width: 30px;
  text-align: center;
  padding: 0 15px;
}
.property-pagination a:hover {
  background-color: #0e6b51;
}
.property-pagination .current {
  background-color: #666;
}

.related-properties {
  font-size: 15px;
  max-width: 1100px;
  margin: 60px auto 0;
  width: 92%;
}
.related-properties h2 {
  border-bottom: 2px solid #08a579;
  font-size: 1.2rem;
  padding: 0.5rem 0;
  color: #08a579;
}
.related-properties ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.related-properties ul .image {
  margin-bottom: 15px;
  height: 180px;
}
.related-properties ul .image img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}
.related-properties ul h3 {
  margin-bottom: 0;
}
.related-properties ul .address {
  font-size: 0.8rem;
}

.search-results-info {
  font-size: 14px;
}

.per-page-selector {
  display: flex;
  align-items: center;
  font-size: 14px;
  justify-content: end;
  margin-bottom: 15px;
}
.per-page-selector label {
  margin-right: 5px;
}
.per-page-selector label:not(:first-of-type) {
  margin-left: 20px;
}
.per-page-selector select {
  padding: 0 10px;
}
.per-page-selector #per-page-select {
  width: 56px;
}
.per-page-selector #sort-select {
  width: 150px;
}

.map-style .row {
  display: flex;
}
.map-style .image {
  width: 100px;
}
.map-style .txt {
  flex: 1;
  padding-left: 10px;
}
.map-style .price {
  font-weight: 700;
  color: red;
  display: block;
  font-size: 1.2rem;
}
.map-style .map-more {
  display: block;
  font-weight: 700;
  color: var(--primary-color-property);
}