.search-results-hero {
  background: linear-gradient(90deg, rgba(0, 30, 106, .92) 0%, rgba(9, 104, 216, .72) 38%, rgba(9, 104, 216, .28) 68%, rgba(9, 104, 216, .06) 100%), url("/img/top-hero-bg.webp") center 38% / cover no-repeat;
  color: #fff;
}

.search-results-shell button:hover,
.search-results-shell select:hover,
.search-results-shell input[type="checkbox"]:hover,
.search-results-shell input[type="radio"]:hover,
.search-results-shell label:has(input[type="checkbox"]):hover,
.search-results-shell label:has(input[type="radio"]):hover,
.search-results-shell a[href]:hover {
  cursor: pointer;
}

.search-results-shell button,
.search-results-shell a[href] {
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease, opacity .16s ease;
}

.search-filter-link:hover,
.search-filter-actions button:hover,
.search-contact-btn:hover,
.search-empty-box a:hover {
  background: #cf3942;
  color: #fff;
  box-shadow: 0 10px 20px rgba(232, 74, 82, .24);
  transform: translateY(-1px);
}

.search-filter-actions a:hover,
.search-building-actions a:hover,
.search-favorite-btn:hover,
.search-pager a:hover {
  border-color: #0968d8;
  background: #eef7ff;
  color: #0968d8;
  box-shadow: 0 8px 18px rgba(9, 104, 216, .14);
  transform: translateY(-1px);
}

.search-display-form button:hover {
  background: #0754ad;
  box-shadow: 0 8px 18px rgba(9, 104, 216, .22);
  transform: translateY(-1px);
}

.search-results-hero__inner {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: center;
}

.search-results-hero h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.3;
  font-weight: 900;
}

.search-results-hero p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .94);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 700;
}

.search-hero-conditions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-hero-conditions span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 3px;
  background: rgba(255, 255, 255, .16);
  padding: 5px 10px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.search-results-count {
  border-radius: 3px;
  background: #fff;
  padding: 20px;
  color: #0968d8;
  box-shadow: 0 14px 30px rgba(8, 40, 93, .16);
}

.search-results-count span {
  display: block;
  color: #526b85;
  font-size: 13px;
  font-weight: 900;
}

.search-results-count strong {
  display: block;
  margin-top: 6px;
  margin-bottom: 10px;
  color: #0968d8;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
}

.search-results-count__value small {
  margin-left: .25em;
  font-size: 16px;
  line-height: 1;
  vertical-align: baseline;
}

.search-results-count__value span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.search-results-count > span b {
  color: #0968d8;
  font-weight: 900;
}

.search-results-shell {
  background: #f3f7fa;
  padding: 32px 0 40px;
}

.search-results-layout {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 24px;
  align-items: stretch;
}

.search-results-side {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  align-content: start;
  gap: 16px;
}

.search-results-layout > main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.search-filter-box,
.search-building-card,
.search-empty-box,
.search-result-head {
  border: 1px solid #c8dce9;
  border-radius: 3px;
  background: #fff;
}

.search-filter-box,
.search-building-card {
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(8, 40, 93, .06);
}

.search-filter-box h2 {
  margin: 0;
  background: #0968d8;
  padding: 12px 16px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.search-filter-box__body {
  padding: 16px;
}

.search-filter-box--mobile {
  display: none;
}

.search-side-count {
  position: sticky;
  top: 16px;
  z-index: 2;
  border: 1px solid #c8dce9;
  border-radius: 3px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(8, 40, 93, .1);
  transition: opacity .16s ease;
}

.search-detail-filter.is-count-loading .search-side-count {
  opacity: .72;
}

.search-side-count span,
.search-side-count p {
  display: block;
  color: #526b85;
  font-size: 13px;
  font-weight: 900;
}

.search-side-count strong {
  display: block;
  margin-top: 6px;
  color: #0968d8;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.search-side-count small {
  margin-left: .25em;
  font-size: 15px;
}

.search-side-count strong span {
  display: inline;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.search-side-count p {
  margin: 14px 0 0;
  line-height: 1.5;
}

.search-side-count p b {
  color: #0968d8;
  font-weight: 900;
}

.search-side-count .search-filter-actions {
  margin-top: 14px;
}

.search-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.search-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid #d8e7f2;
  border-radius: 3px;
  background: #f8fcff;
  padding: 5px 10px;
  color: #405a77;
  font-size: 12px;
  font-weight: 800;
}

.search-filter-count {
  margin-top: 14px;
  border-top: 1px solid #e5edf3;
  padding-top: 12px;
  color: #0c2d57;
  font-size: 14px;
  font-weight: 900;
}

.search-filter-count b,
.search-result-total b {
  color: #0968d8;
  font-size: 22px;
}

.search-change-list {
  display: grid;
  gap: 8px;
}

.search-change-list a {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid #d8e7f2;
  border-radius: 3px;
  background: #f8fcff;
  padding: 8px 10px;
  color: #344f6d;
  font-size: 13px;
  font-weight: 900;
}

.search-change-list a:hover {
  color: #0968d8;
}

.search-filter-link,
.search-contact-btn,
.search-empty-box a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  background: #e84a52;
  padding: 0 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.search-favorite-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d5e8;
  border-radius: 3px;
  background: #fff;
  padding: 0 12px;
  color: #0968d8;
  font-size: 13px;
  font-weight: 900;
}

.search-favorite-btn.is-loading {
  opacity: .7;
  pointer-events: none;
}

.search-favorite-btn.is-added {
  border-color: #18a87d;
  background: #ecfdf5;
  color: #0b7f5c;
}

.search-favorite-btn.has-error {
  border-color: #e84a52;
  color: #e84a52;
}

.search-filter-link {
  width: 100%;
  margin-top: 16px;
}

.search-detail-filter {
  display: grid;
  gap: 16px;
  padding: 14px;
}

.search-detail-filter--standalone {
  display: contents;
  padding: 0;
}

.search-detail-section {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c8dce9;
  border-radius: 3px;
  background: #fff;
}

.search-detail-section__title {
  margin: 0;
  padding: 11px 12px;
  border-bottom: 1px solid #dbe8f1;
  background: #f1f8ff;
  color: #0c2d57;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 900;
}

.search-detail-section__title span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 3px;
  background: #0968d8;
  color: #fff;
  padding: 0 7px;
  margin-right: 7px;
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
}

.search-detail-section__body {
  display: grid;
  padding: 12px;
}

.search-detail-filter fieldset,
.search-detail-row {
  min-width: 0;
  border: 0;
  margin: 0;
  padding: 14px 0 11px;
}

.search-detail-section__body .search-detail-row:first-child {
  padding-top: 11px;
}

.search-detail-section__body .search-detail-row:last-child {
  border-bottom: 0;
}

.search-detail-filter legend {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
  color: #344f6d;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.search-detail-filter legend::after {
  content: "";
  flex: 1 1 auto;
  border-top: 1px dotted #b9d5e8;
}

.search-detail-filter select {
  width: 100%;
  min-height: 36px;
  border: 1px solid #c8dce9;
  border-radius: 3px;
  background: #fff;
  padding: 0 9px;
  color: #344f6d;
  font-size: 13px;
  font-weight: 800;
}

.search-filter-pair,
.search-filter-checks {
  display: grid;
  gap: 8px;
}

.search-filter-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-filter-checks {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-filter-checks--compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.search-filter-checks + .search-filter-checks,
.search-filter-checks + select {
  margin-top: 10px;
}

.search-filter-checks label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #405a77;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.search-filter-checks input {
  flex: 0 0 auto;
}

.search-options--facility-grid {
  display: block;
  max-height: none;
  overflow: visible;
}

.search-options--facility-grid .search-facility-category + .search-facility-category {
  margin-top: 10px;
}

.search-facility-category {
  min-width: 0;
  padding-left: 10px;
  border-left: 3px solid #c8dce9;
}

.search-facility-category h4 {
  margin: 0 0 12px;
  padding: 6px 9px;
  border-radius: 3px;
  background: #f4f9fd;
  color: #0c2d57;
  font-size: 13px;
  line-height: 1.3;
  font-weight: 900;
}

.search-facility-category__options {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 5px 10px;
}

.search-facility-category__options label {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  line-height: 1.4;
}

.search-filter-actions {
  display: grid;
  gap: 8px;
}

.search-filter-actions button,
.search-filter-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 900;
}

.search-filter-actions button {
  border: 0;
  background: #e84a52;
  color: #fff;
}

.search-filter-actions a {
  border: 1px solid #b9d5e8;
  background: #fff;
  color: #0968d8;
}

.search-result-head {
  margin-bottom: 16px;
  padding: 12px 14px;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  color: #344f6d;
  font-size: 14px;
  font-weight: 900;
}

.search-result-total {
  margin: 0;
}

.search-display-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-display-select {
  height: 34px;
  border: 1px solid #c8dce9;
  border-radius: 3px;
  background: #fff;
  padding: 0 10px;
  color: #344f6d;
  font-size: 13px;
  font-weight: 800;
}

.search-display-form button {
  height: 34px;
  border: 0;
  border-radius: 3px;
  background: #0968d8;
  padding: 0 12px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.search-pager {
  margin: 0 0 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.search-pager--bottom {
  margin: 20px 0 0;
}

.search-pager a {
  min-width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #cfe3f3;
  border-radius: 3px;
  background: #fff;
  padding: 0 8px;
  color: #32658d;
  font-size: 12px;
  font-weight: 900;
}

.search-pager a.is-current {
  border-color: #0968d8;
  background: #0968d8;
  color: #fff;
}

.search-results-list {
  display: grid;
  gap: 20px;
}

.search-building-card {
  box-shadow: 0 10px 24px rgba(8, 40, 93, .08);
}

.search-building-card__head {
  margin: 0;
  background: #0968d8;
  padding: 12px 16px;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.search-building-card__summary {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.search-building-photo,
.search-building-noimage {
  width: 190px;
  height: 296px;
  border: 1px solid #d8e7f2;
  border-radius: 3px;
}

.search-building-photo {
  display: block;
  object-fit: cover;
  object-position: center;
}

.search-building-noimage {
  display: grid;
  place-items: center;
  background: #eef6fb;
  color: #536b84;
  font-size: 12px;
  font-weight: 900;
}

.search-building-overview {
  min-width: 0;
  display: grid;
  gap: 12px;
}

.search-building-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-building-tags span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  padding: 4px 10px;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.search-tag-red {
  background: #e84a52;
}

.search-tag-green {
  background: #18a87d;
}

.search-tag-purple {
  background: #9b4dcc;
}

.search-tag-blue {
  background: #0968d8;
}

.search-tag-pink {
  background: #db2777;
}

.search-tag-orange {
  background: #ea580c;
}

.search-tag-cyan {
  background: #0891b2;
}

.search-tag-yellow {
  background: #ca8a04;
}

.search-tag-indigo {
  background: #4f46e5;
}

.search-tag-teal {
  background: #0f766e;
}

.search-building-spec {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  color: #4f657e;
  font-size: 13px;
  font-weight: 700;
}

.search-building-spec dt {
  display: block;
  margin-bottom: 4px;
  color: #6b8196;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.search-building-spec dd {
  min-width: 0;
  margin: 0;
  color: #344f6d;
  line-height: 1.55;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.search-spec-item,
.search-access-row {
  min-width: 0;
  border: 1px solid #dbe8f1;
  border-radius: 3px;
  background: #f8fcff;
  padding: 10px;
}

.search-spec-item--full {
  grid-column: 1 / -1;
}

.search-access-row {
  grid-column: 1 / -1;
}

.search-access-row dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-access-row span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid #cfe1ee;
  border-radius: 3px;
  background: #fff;
  padding: 4px 8px;
  color: #405a77;
  line-height: 1.35;
  font-size: 12px;
  font-weight: 800;
}

.search-building-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.search-building-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d5e8;
  border-radius: 3px;
  background: #fff;
  padding: 7px 12px;
  color: #0968d8;
  font-size: 13px;
  font-weight: 900;
}

.search-building-actions a:last-child {
  background: #f1f8ff;
}

.search-room-list {
  border-top: 0;
  display: grid;
  gap: 12px;
  background: #f3f7fa;
  padding: 12px 14px 16px;
}

.search-room-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 122px;
  gap: 12px;
  align-items: stretch;
  border-bottom: 0;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 40, 93, .06);
}

.search-room-card:last-child {
  border-bottom: 0;
}

.search-room-card__content {
  min-width: 0;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 10px 14px;
  padding: 14px 16px;
}

.search-room-plan {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 112px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  align-self: center;
  overflow: hidden;
  border: 1px solid #d8e7f2;
  border-radius: 3px;
  background: #f8fcff;
  color: #7a8aa0;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.search-room-plan img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  transition: transform .18s ease;
}

.search-room-plan:hover {
  border-color: #0968d8;
  box-shadow: 0 8px 18px rgba(9, 104, 216, .18);
  transform: translateY(-1px);
}

.search-room-plan:hover img {
  transform: scale(1.05);
}

.search-room-card__main,
.search-room-card__sub {
  grid-column: 2;
  margin: 0;
  display: grid;
  gap: 8px 32px;
}

.search-room-card__main {
  grid-template-columns: fit-content(120px) fit-content(120px) fit-content(120px) minmax(max-content, 1fr);
  align-items: center;
  padding: 0;
  background: #fff;
}

.search-room-card__sub {
  grid-template-columns: fit-content(72px) fit-content(90px) fit-content(116px) fit-content(72px) fit-content(108px);
  gap: 8px 32px;
  border-top: 1px dotted #b9d5e8;
  background: transparent;
  padding: 10px 0 0;
}

.search-room-actions {
  min-width: 0;
  min-height: 100%;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  align-self: stretch;
  border-left: 0;
  padding: 12px 12px 12px 0;
}

.search-room-actions .search-contact-btn,
.search-room-actions .search-favorite-btn {
  width: 100%;
  min-height: 40px;
  padding: 0 8px;
}

.search-room-card dl div {
  min-width: 0;
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 0;
  padding: 0;
}

.search-room-card__sub div {
  min-height: auto;
}

.search-room-card dl div:last-child {
  border-right: 0;
}

.search-room-card dt {
  display: block;
  margin-bottom: 4px;
  color: #9aa7b5;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
}

.search-room-card dd {
  margin: 0;
  color: #26364a;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.search-room-card__main dd {
  color: #182a3f;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.search-room-card__sub dt {
  color: #9aa7b5;
}

.search-room-card__sub dd {
  color: #516176;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.25;
  font-weight: 900;
  white-space: nowrap;
}

.search-room-card__sub .search-room-floor dd {
  color: #075fc7;
}

.search-room-card__sub .search-room-layout dd {
  color: #6d28d9;
}

.search-room-card__sub .search-room-area dd {
  color: #047857;
}

.search-room-card__sub .search-room-direction dd {
  color: #c2410c;
}

.search-room-card__sub .search-room-updated dd {
  color: #111;
}

.search-room-rent {
  background: transparent;
}

.search-room-rent dt {
  color: #9aa7b5;
}

.search-room-rent dd {
  color: #f43f5e;
  font-size: 16px;
  line-height: 1.25;
  font-weight: 900;
}

.search-room-fee dd {
  color: #0968d8;
}

.search-room-brokerage dd {
  color: #ea580c;
}

.search-empty-box {
  padding: 32px;
  text-align: center;
}

.search-empty-box h2 {
  color: #0c2d57;
  font-size: 20px;
  font-weight: 900;
}

.search-empty-box p {
  margin-top: 12px;
  color: #536b84;
  line-height: 1.8;
  font-size: 14px;
  font-weight: 700;
}

.search-empty-box a {
  margin-top: 20px;
}

@media (max-width: 1023px) {
  .search-results-layout,
  .search-results-hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-results-side,
  .search-results-layout > main {
    grid-column: auto;
    grid-row: auto;
  }

  .search-results-count {
    width: min(360px, 100%);
  }
}

@media (max-width: 767px) {
  .search-results-hero__inner,
  .search-results-layout {
    width: min(100% - 28px, 1200px);
  }

  .search-results-hero h1 {
    font-size: 28px;
  }

  .search-results-count,
  .search-results-side {
    display: none;
  }

  .search-filter-box--mobile {
    display: block;
    margin-bottom: 16px;
  }

  .search-result-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .search-building-card__summary,
  .search-building-spec,
  .search-filter-pair,
  .search-room-card,
  .search-room-card__sub {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-room-actions {
    min-height: 40px;
    border-left: 0;
    border-top: 0;
    grid-template-rows: auto auto;
    padding: 0 16px 14px;
  }

  .search-room-card__main,
  .search-room-card__sub {
    grid-column: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-room-card__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .search-room-plan {
    grid-column: auto;
    grid-row: auto;
    width: min(150px, 100%);
  }

  .search-room-rent {
    grid-column: 1 / -1;
  }

  .search-contact-btn,
  .search-favorite-btn {
    width: 100%;
  }

  .search-building-photo,
  .search-building-noimage {
    width: 100%;
  }

  .search-room-list {
    display: none;
  }

  .search-access-row dd {
    display: grid;
  }
}
