.homes,
.apartment {
  background: #f7f5f1;
  color: #0b1f33;
  font-family: "Schibsted Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  padding: clamp(4.5rem, 10vw, 7rem) clamp(1.25rem, 5vw, 4.5rem) 4rem;
}

.homes__title,
.apartment__title {
  font-family: Fraunces, "Iowan Old Style", Georgia, serif;
  font-weight: 460;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.homes__list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.homes__list a {
  color: inherit;
  text-decoration: none;
  display: grid;
  gap: 0.35rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(11, 31, 51, 0.16);
}

.homes__list a:hover .homes__name,
.homes__list a:focus-visible .homes__name {
  color: #ab4a2b;
}

.homes__name {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.homes__line,
.apartment__line {
  margin: 0.75rem 0 0;
  color: rgba(11, 31, 51, 0.68);
}

.apartment__back {
  color: #ab4a2b;
  text-decoration: none;
  font-size: 0.875rem;
}

.apartment__rooms {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

.apartment__room h2 {
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 460;
  margin: 0 0 1rem;
}

.apartment__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.55rem;
}

.apartment__grid a {
  display: block;
  line-height: 0;
  background: #e8dcc8;
}

.apartment__grid img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.faq {
  margin-top: 3.5rem;
}

.faq__title {
  font-family: Fraunces, Georgia, serif;
  font-weight: 460;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin: 0 0 1rem;
}

.faq__list {
  border-top: 1px solid rgba(11, 31, 51, 0.16);
}

.faq__list details {
  border-bottom: 1px solid rgba(11, 31, 51, 0.16);
}

.faq__list summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 2.2rem 1.1rem 0;
  position: relative;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
}

.faq__list summary::-webkit-details-marker {
  display: none;
}

.faq__list summary::after {
  content: "";
  position: absolute;
  right: 0.35rem;
  top: 50%;
  width: 11px;
  height: 11px;
  border-right: 1px solid rgba(11, 31, 51, 0.34);
  border-bottom: 1px solid rgba(11, 31, 51, 0.34);
  transform: translateY(-65%) rotate(45deg);
}

.faq__list details[open] summary::after {
  transform: translateY(-30%) rotate(225deg);
}

.faq__answer {
  max-width: 62ch;
  padding: 0 0 1.3rem;
  color: rgba(11, 31, 51, 0.78);
}

.faq__answer p {
  margin: 0 0 0.75rem;
}

@media (min-width: 800px) {
  .apartment__grid img {
    height: 240px;
  }
}
