:root {
  --chaos-ink: #2f3438;
  --chaos-muted: #626b73;
  --chaos-line: #d6d9dd;
  --chaos-head: #f0f1f3;
  --chaos-point: #f3fae6;
  --chaos-blue: #1574ad;
  --chaos-pink: #e83d79;
  --chaos-cyan: #28aeca;
  --chaos-red: #d71920;
  --chaos-green: #85bf26;
  --chaos-navy: #26364d;
}

body.single-chaos_property > article > .post-thumbnail,
body.single-chaos_property > main > article > .post-thumbnail,
body.single-chaos_property .entry-header .post-thumbnail,
body.single-chaos_property .entry-header .wp-post-image,
body.single-chaos_property .wp-block-post-featured-image:not(.chaos-property-detail-image),
body.single-chaos_property .kubio-featured-image,
body.single-chaos_property .kubio-post-featured-image {
  display: none !important;
}

.chaos-properties-intro,
.chaos-properties-list-tools,
.chaos-properties-list,
.chaos-property-detail-main {
  width: min(1180px, calc(100vw - 28px));
  max-width: none;
  margin-left: 50%;
  margin-right: 0;
  transform: translateX(-50%);
}

.chaos-properties-intro {
  padding: 38px 0 24px;
}

.chaos-properties-intro-label {
  margin: 0 0 8px;
  color: #9a7a32;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.chaos-properties-intro h1 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.2;
}

.chaos-properties-intro p {
  width: min(820px, 100%);
  margin: 0;
  color: var(--chaos-muted);
  font-size: 15px;
}

.chaos-properties-list-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-block: 16px;
  padding: 14px 16px;
  background: #f7f8fa;
  border: 1px solid var(--chaos-line);
  font-size: 14px;
}

.chaos-properties-sorts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--chaos-muted);
}

.chaos-properties-sorts span {
  border-left: 1px solid var(--chaos-line);
  padding-left: 10px;
}

.chaos-properties-list {
  display: grid;
  gap: 18px;
  padding-bottom: 70px;
}

.chaos-property-row {
  border: 1px solid var(--chaos-line);
  background: #fff;
}

.chaos-property-row-head {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  min-height: 64px;
  background: var(--chaos-head);
  border-bottom: 1px solid var(--chaos-line);
}

.chaos-property-check-cell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--chaos-line);
}

.chaos-property-fake-check {
  width: 30px;
  height: 30px;
  border: 4px solid #555;
  border-radius: 3px;
  background: #fff;
}

.chaos-property-title-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 18px;
}

.chaos-property-title {
  color: var(--chaos-blue);
  font-size: 23px;
  font-weight: 800;
  text-decoration: none;
}

.chaos-property-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 9px;
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
}

.chaos-property-badge-pink,
.chaos-property-price-tag {
  background: var(--chaos-pink);
}

.chaos-property-badge-outline {
  color: var(--chaos-pink);
  background: #fff;
  border: 2px solid #e887a8;
}

.chaos-property-badge-cyan {
  background: var(--chaos-cyan);
}

.chaos-property-point-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  min-height: 62px;
  padding: 10px 18px;
  background: var(--chaos-point);
  border-bottom: 1px solid var(--chaos-line);
  font-size: 20px;
  font-weight: 800;
}

.chaos-property-point-label {
  width: 56px;
  padding: 4px 8px;
  border-radius: 4px;
  background: var(--chaos-green);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.chaos-property-row-body {
  display: grid;
  grid-template-columns: 290px minmax(250px, 1fr) 150px 130px 150px 126px;
}

.chaos-property-cell {
  min-height: 178px;
  padding: 18px 14px;
  border-right: 1px solid var(--chaos-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--chaos-ink);
  text-decoration: none;
}

.chaos-property-cell:last-child {
  border-right: 0;
}

.chaos-property-media-cell,
.chaos-property-price-cell,
.chaos-property-num-cell,
.chaos-property-action-cell {
  align-items: center;
  text-align: center;
}

.chaos-property-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid #edf0f3;
  background: #edf0f3;
}

.chaos-property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.chaos-property-image-count {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--chaos-muted);
}

.chaos-property-location {
  font-size: 17px;
  text-align: left;
}

.chaos-property-address {
  margin-bottom: 8px;
  font-weight: 800;
}

.chaos-property-price-tag {
  display: inline-flex;
  margin-bottom: 4px;
  padding: 3px 9px;
  border-radius: 4px;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
}

.chaos-property-price {
  color: var(--chaos-red);
  font-size: 30px;
  line-height: 1.15;
  font-weight: 900;
}

.chaos-property-num-main {
  font-size: 20px;
}

.chaos-property-num-sub {
  margin-top: 8px;
  font-size: 18px;
}

.chaos-property-detail-button,
.chaos-property-request-button,
.chaos-property-mail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  font-weight: 900;
}

.chaos-property-detail-button {
  min-height: 48px;
  margin-bottom: 16px;
  border: 1px solid #d6d0c2;
  border-radius: 6px;
  background: linear-gradient(#fff, #f2eee3);
  color: #7b7467;
  font-size: 13px;
}

.chaos-property-request-button {
  min-height: 58px;
  border-radius: 4px;
  background: var(--chaos-red);
  color: #fff;
  font-size: 21px;
}

.chaos-property-detail-main {
  padding: 34px 0 72px;
}

.chaos-property-back {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--chaos-muted);
}

.chaos-property-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, .88fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 40px;
}

.chaos-property-detail-image {
  border: 1px solid var(--chaos-line);
  border-radius: 8px;
  overflow: hidden;
  background: #f7f8fa;
}

.chaos-property-detail-image img {
  width: 100%;
  display: block;
}

.chaos-property-summary {
  border: 1px solid var(--chaos-line);
  border-radius: 8px;
  padding: 26px;
  background: #fff;
}

.chaos-property-summary-status {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(184,155,94,.14);
  color: #7a632f;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 12px;
}

.chaos-property-summary h1 {
  margin-top: 0;
  font-size: clamp(30px, 4vw, 44px);
}

.chaos-property-summary-price {
  color: var(--chaos-red);
  font-size: 32px;
  font-weight: 900;
  margin: 14px 0 18px;
}

.chaos-property-summary-list {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: var(--chaos-muted);
}

.chaos-property-mail-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--chaos-navy);
  color: #fff;
}

.chaos-property-section {
  margin-top: 38px;
}

.chaos-property-section h2 {
  margin: 0 0 16px;
  font-size: 24px;
}

.chaos-property-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--chaos-line);
  border-left: 1px solid var(--chaos-line);
}

.chaos-property-detail-item {
  padding: 16px;
  border-right: 1px solid var(--chaos-line);
  border-bottom: 1px solid var(--chaos-line);
  min-height: 82px;
}

.chaos-property-label {
  display: block;
  color: var(--chaos-muted);
  font-size: 12px;
  margin-bottom: 4px;
}

.chaos-property-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.chaos-property-point {
  padding: 20px;
  background: #f7f8fa;
  border-radius: 8px;
}

.chaos-property-point h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.chaos-property-point p,
.chaos-property-description {
  color: var(--chaos-muted);
}

.chaos-property-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.chaos-property-gallery-item {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--chaos-line);
  border-radius: 8px;
  background: #f7f8fa;
}

.chaos-property-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
}

.chaos-property-gallery-item:hover img {
  transform: scale(1.03);
}

@media (max-width: 1100px) {
  .chaos-property-row-body {
    grid-template-columns: 280px minmax(230px, 1fr) 140px 120px 140px;
  }
  .chaos-property-action-cell {
    grid-column: 1 / -1;
    min-height: auto;
    flex-direction: row;
    gap: 12px;
    border-top: 1px solid var(--chaos-line);
  }
  .chaos-property-detail-button,
  .chaos-property-request-button {
    max-width: 220px;
    margin-bottom: 0;
  }
}

@media (max-width: 840px) {
  .chaos-properties-list-tools,
  .chaos-property-row-body,
  .chaos-property-detail-hero,
  .chaos-property-points {
    grid-template-columns: 1fr;
  }
  .chaos-properties-list-tools {
    align-items: flex-start;
    flex-direction: column;
  }
  .chaos-property-cell {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--chaos-line);
  }
  .chaos-property-price-cell,
  .chaos-property-num-cell {
    align-items: flex-start;
    text-align: left;
  }
  .chaos-property-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .chaos-property-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .chaos-property-row-head {
    grid-template-columns: 52px 1fr;
  }
  .chaos-property-fake-check {
    width: 24px;
    height: 24px;
    border-width: 3px;
  }
  .chaos-property-title {
    font-size: 19px;
  }
  .chaos-property-point-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
    font-size: 16px;
  }
  .chaos-property-detail-grid {
    grid-template-columns: 1fr;
  }
  .chaos-property-gallery {
    grid-template-columns: 1fr;
  }
}
