.homes-list-page {
  background: #f7fbff;
  color: #14315b;
  padding: 48px 0 72px;
}

.homes-list-heading {
  margin: 0 0 28px;
  text-align: center;
}

.homes-list-heading h1 {
  color: #052b67;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0;
}

.homes-list-heading p {
  color: #0b74d1;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 10px 0 0;
}

.homes-favorite-panel,
.homes-list-empty--panel {
  background: #fff;
  border: 1px solid #d9e8f5;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(20, 49, 91, .08);
}

.homes-favorite-panel {
  padding: 24px;
}

.homes-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 0 0 20px;
}

.homes-list-toolbar:last-child {
  padding: 24px 0 0;
}

.homes-list-toolbar__button,
.homes-list-action {
  align-items: center;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-size: 13px;
  font-weight: 800;
  justify-content: center;
  line-height: 1.35;
  min-height: 40px;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    opacity 160ms ease,
    filter 160ms ease;
}

.homes-list-toolbar__button {
  background: #fff;
  border: 1px solid #c8dceb;
  color: #14315b;
  padding: 0 16px;
}

.homes-list-toolbar__button--primary {
  background: #0b74d1;
  border-color: #0b74d1;
  color: #fff;
}

.homes-list-toolbar__button--danger {
  background: #fff4f4;
  border-color: #ffc7c7;
  color: #c03535;
}

.homes-favorite-table-wrap {
  overflow-x: auto;
}

.homes-favorite-table {
  border-collapse: collapse;
  min-width: 940px;
  width: 100%;
}

.homes-favorite-table th,
.homes-favorite-table td {
  border: 1px solid #d9e8f5;
  padding: 14px;
  text-align: center;
  vertical-align: middle;
}

.homes-favorite-table th {
  background: #ecf7ff;
  color: #052b67;
  font-size: 13px;
  font-weight: 800;
}

.homes-favorite-table td {
  background: #fff;
  font-size: 13px;
  line-height: 1.7;
}

.homes-favorite-table__select {
  width: 48px;
}

.homes-favorite-table__select input {
  appearance: none;
  -webkit-appearance: none;
  display: block;
  width: 18px;
  height: 18px;
  margin: 0 auto;
  border: 1px solid #cbd8e2;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.homes-favorite-table__select input:hover {
  border-color: #0b74d1;
  background: #eef7ff;
  box-shadow: 0 6px 14px rgba(11, 116, 209, .12);
  transform: translateY(-1px);
}

.homes-favorite-table__select input:checked {
  border-color: #0b74d1;
  background-color: #0b74d1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 72% 72%;
  box-shadow: 0 8px 16px rgba(11, 116, 209, .18);
}

.homes-favorite-table__select input:focus-visible {
  outline: 2px solid rgba(11, 116, 209, .22);
  outline-offset: 2px;
}

.homes-favorite-table__text {
  min-width: 260px;
  text-align: left;
}

.homes-favorite-table__text p {
  margin: 0 0 6px;
}

.homes-favorite-table__text p:last-child {
  margin-bottom: 0;
}

.homes-favorite-table__title a {
  color: #0b58bc;
  font-weight: 800;
  text-decoration: none;
}

.homes-favorite-table__plan a {
  align-items: center;
  background: #f3f8fc;
  border: 1px solid #d9e8f5;
  color: #60728f;
  display: inline-flex;
  height: 140px;
  justify-content: center;
  position: relative;
  text-decoration: none;
  width: 140px;
}

.homes-favorite-table__plan img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.homes-favorite-table strong {
  color: #c15a1f;
  font-size: 16px;
}

.homes-favorite-table__actions {
  width: 160px;
}

.homes-list-action {
  color: #fff;
  margin: 4px 0;
  padding: 0 12px;
  width: 100%;
}

.homes-list-action--detail {
  background: #0b74d1;
}

.homes-list-action--contact {
  background: #ff554d;
}

.homes-list-action--remove {
  background: #60728f;
}

.homes-list-toolbar__button:hover,
.homes-list-toolbar__button:focus-visible,
.homes-list-action:hover,
.homes-list-action:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.03);
  outline: none;
}

.homes-list-empty {
  color: #60728f;
  font-weight: 700;
  padding: 32px;
  text-align: center;
}

.homes-list-empty--panel {
  padding: 40px 20px;
}

.homes-list-new {
  background: #ff554d;
  border-radius: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  left: 8px;
  line-height: 1;
  padding: 5px 7px;
  position: absolute;
  top: 8px;
}

.homes-history-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.homes-history-card {
  background: #fff;
  border: 1px solid #d9e8f5;
  border-radius: 8px;
  box-shadow: 0 14px 30px rgba(20, 49, 91, .08);
  overflow: hidden;
}

.homes-history-card__link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.homes-history-card__image {
  align-items: center;
  aspect-ratio: 368 / 230;
  background: #e8f2f9;
  color: #60728f;
  display: flex;
  justify-content: center;
  margin: 0;
  position: relative;
}

.homes-history-card__image img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.homes-history-card__body {
  padding: 18px;
}

.homes-history-card__body h2 {
  color: #052b67;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 10px;
}

.homes-history-card__body p {
  color: #60728f;
  font-size: 13px;
  line-height: 1.65;
  margin: 0 0 6px;
}

.homes-history-card__body strong {
  color: #c15a1f;
  font-size: 17px;
}

@media (max-width: 900px) {
  .homes-list-page {
    padding: 36px 0 56px;
  }

  .homes-favorite-panel {
    padding: 16px;
  }

  .homes-history-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .homes-list-heading h1 {
    font-size: 25px;
  }

  .homes-list-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .homes-list-toolbar__button {
    width: 100%;
  }

  .homes-history-grid {
    grid-template-columns: 1fr;
  }
}
