/* ==========================================================
   Lequios Housing: building archive
   Scope: /building/, /building-tag/*, /building-category/*
   ========================================================== */

#body_wrap.post-type-archive-building #content.l-content,
#body_wrap.tax-building-tag #content.l-content,
#body_wrap.tax-building-category #content.l-content,
body.post-type-archive-building #content.l-content,
body.tax-building-tag #content.l-content,
body.tax-building-category #content.l-content {
  padding-top: 42px;
  padding-bottom: 72px;
}

#body_wrap.post-type-archive-building #main_content,
#body_wrap.tax-building-tag #main_content,
#body_wrap.tax-building-category #main_content,
body.post-type-archive-building #main_content,
body.tax-building-tag #main_content,
body.tax-building-category #main_content {
  min-width: 0;
  max-width: none !important;
  margin: 0;
}

.lh-building-archive {
  --lh-property-text: #07364a;
  --lh-property-price: #00509e;
  --lh-property-accent: #ff7a2f;
  --lh-property-bg: #f3fbfe;
  --lh-property-line: #cfeaf5;
  --lh-property-muted: #6f8d99;
  --lh-property-card-radius: 16px;
  --lh-property-shadow: 0 8px 24px rgba(0, 80, 158, .08);
  --lh-property-shadow-hover: 0 14px 34px rgba(0, 80, 158, .14);
  color: var(--lh-property-text);
  letter-spacing: 0;
}

.lh-building-main .l-mainContent__inner {
  max-width: none;
}

.lh-building-hero {
  padding: 34px 34px 30px;
  border: 1px solid var(--lh-property-line);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fdff 0%, #fff 58%, #fff8f3 100%);
}

.lh-building-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0 0 14px;
  padding: 5px 13px;
  border: 1px solid rgba(0, 80, 158, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--lh-property-price);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.lh-building-hero h1 {
  margin: 0;
  padding: 0;
  color: var(--lh-property-text);
  font-size: 34px;
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0;
}

.lh-building-hero h1::before,
.lh-building-hero h1::after {
  content: none !important;
}

.lh-building-hero p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--lh-property-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.8;
  letter-spacing: 0;
}

.lh-building-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lh-building-tabs__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--lh-property-line);
  border-radius: 999px;
  background: #fff;
  color: var(--lh-property-text);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}

.lh-building-tabs__item:hover {
  border-color: rgba(0, 80, 158, .38);
  color: var(--lh-property-price);
  transform: translateY(-1px);
}

.lh-building-tabs__item.is-active {
  border-color: var(--lh-property-price);
  background: var(--lh-property-price);
  color: #fff;
}

.lh-building-return {
  margin-top: 20px !important;
}

.lh-building-return a,
.lh-building-empty a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 18px;
  border: 1px solid rgba(0, 80, 158, .26);
  border-radius: 999px;
  background: #fff;
  color: var(--lh-property-price);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.lh-building-search {
  margin-top: 28px;
  padding: 22px;
  border: 1px solid var(--lh-property-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 80, 158, .05);
}

.lh-building-search__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.lh-building-search__field {
  display: grid;
  gap: 7px;
  margin: 0;
  color: var(--lh-property-text);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.3;
}

.lh-building-search__field span {
  letter-spacing: 0;
}

.lh-building-search input[type="search"],
.lh-building-search select {
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--lh-property-line);
  border-radius: 6px;
  background: #f8fdff;
  color: var(--lh-property-text);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0;
}

.lh-building-search input[type="search"]:focus,
.lh-building-search select:focus {
  outline: 2px solid rgba(0, 80, 158, .16);
  outline-offset: 1px;
  border-color: rgba(0, 80, 158, .52);
  background: #fff;
}

.lh-building-search__actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 10px;
  align-items: center;
}

.lh-building-search__actions button,
.lh-building-search__actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.lh-building-search__actions button {
  border: 1px solid var(--lh-property-price);
  background: var(--lh-property-price);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 80, 158, .18);
}

.lh-building-search__actions a {
  border: 1px solid var(--lh-property-line);
  background: #fff;
  color: var(--lh-property-muted);
}

.lh-building-list {
  margin-top: 34px;
}

.lh-building-list__wrap {
  margin-top: 0;
}

.lh-building-list__items .lh-property-status-badge {
  position: absolute;
  z-index: 4;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0;
}

.lh-building-list__items .lh-property-status-badge--pricechange {
  background: var(--lh-property-accent);
  box-shadow: 0 4px 12px rgba(255, 122, 47, .34);
}

.lh-building-list__items .lh-property-status-badge--new {
  background: #16a05d;
  box-shadow: 0 4px 12px rgba(22, 160, 93, .28);
}

.lh-building-list__items .lh-property-status-badge--recommendation {
  background: var(--lh-property-price);
  box-shadow: 0 4px 12px rgba(0, 80, 158, .28);
}

.lh-building-list__items .p-postList__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.lh-building-list__items .lh-property-location {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  color: var(--lh-property-price);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}

.lh-building-list__items .lh-property-location::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 3px solid var(--lh-property-accent);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(255, 122, 47, .13);
}

.lh-building-list__items .p-postList__title {
  margin: 0;
  color: var(--lh-property-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.48;
  letter-spacing: 0 !important;
}

.lh-building-card__chips {
  position: absolute;
  z-index: 4;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
}

.lh-building-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  max-width: 100%;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--lh-property-text);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(7, 54, 74, .12);
}

.lh-building-card__chip--category {
  color: var(--lh-property-price);
}

.lh-building-list__items .lh-prop-price {
  order: 2;
  margin: 14px 0 0;
  color: var(--lh-property-price);
  font-size: 30px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0 !important;
}

.lh-building-list__items .p-postList__excerpt.lh-property-card-meta {
  order: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--lh-property-text);
  font-size: 13px;
  line-height: 1.4;
  overflow: visible;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}

.lh-building-list__items .lh-property-layout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 7px 11px;
  border: 1px solid var(--lh-property-line);
  border-radius: 999px;
  background: #f8fdff;
  color: var(--lh-property-text);
}

.lh-building-list__items .lh-property-layout__label {
  color: var(--lh-property-muted);
  font-size: 12px;
  font-weight: 700;
}

.lh-building-list__items .lh-property-layout__value {
  color: var(--lh-property-text);
  font-size: 14px;
  font-weight: 900;
}

.lh-building-list__items .p-postList__meta {
  order: 4;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--lh-property-line);
  color: var(--lh-property-muted);
  font-size: 12px;
}

.lh-building-list__items .lh-property-times time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--lh-property-muted);
  font-size: 12px;
  font-weight: 700;
}

.lh-building-pagination {
  margin-top: 38px;
}

.lh-building-empty {
  padding: 34px;
  border: 1px solid var(--lh-property-line);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.lh-building-empty p {
  margin: 0 0 18px;
  color: var(--lh-property-text);
  font-weight: 800;
}

@media (min-width: 600px) and (max-width: 959px) {
  #body_wrap.post-type-archive-building #content.l-content,
  #body_wrap.tax-building-tag #content.l-content,
  #body_wrap.tax-building-category #content.l-content,
  body.post-type-archive-building #content.l-content,
  body.tax-building-tag #content.l-content,
  body.tax-building-category #content.l-content {
    padding-top: 34px;
    padding-bottom: 58px;
  }

  .lh-building-search__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lh-building-search__actions {
    grid-column: 1 / -1;
  }

  .lh-building-list__items {
    gap: 22px !important;
  }
}

@media (max-width: 599px) {
  #body_wrap.post-type-archive-building #content.l-content,
  #body_wrap.tax-building-tag #content.l-content,
  #body_wrap.tax-building-category #content.l-content,
  body.post-type-archive-building #content.l-content,
  body.tax-building-tag #content.l-content,
  body.tax-building-category #content.l-content {
    padding-top: 24px;
    padding-bottom: 46px;
  }

  .lh-building-hero {
    padding: 24px 18px 22px;
  }

  .lh-building-hero h1 {
    font-size: 26px;
  }

  .lh-building-hero p {
    font-size: 14px;
  }

  .lh-building-tabs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .lh-building-tabs__item {
    min-height: 40px;
    width: 100%;
  }

  .lh-building-search {
    padding: 18px;
  }

  .lh-building-search__form {
    grid-template-columns: 1fr;
  }

  .lh-building-search__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .lh-building-list__items {
    gap: 20px !important;
  }

  .lh-building-list__items .p-postList__body {
    padding: 18px 18px 20px;
  }

  .lh-building-list__items .p-postList__title {
    font-size: 16px;
  }

  .lh-building-list__items .lh-prop-price {
    font-size: 25px;
  }

  .lh-building-list__items .lh-property-status-badge {
    top: 10px;
    left: 10px;
    min-height: 24px;
    padding: 5px 10px;
    font-size: 11px;
  }
}