#rooms {
  overflow-x: clip;
}

#rooms .room-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  margin: 40px auto 0;
  max-width: 1360px;
  width: 100%;
}

#rooms .room-card,
#rooms .room {
  display: grid;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  min-height: 390px;
  min-width: 0;
  width: 100%;
}

#rooms .room-card > img,
#rooms .room > img,
#rooms .room-carousel {
  aspect-ratio: auto;
  height: 100%;
  min-height: 390px;
  min-width: 0;
  width: 100%;
}

#rooms .room-card > img,
#rooms .room > img,
#rooms .room-carousel-track > img {
  object-fit: cover;
}

#rooms .room-card-copy,
#rooms .room-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: clamp(30px, 4vw, 54px);
}

#rooms .room-card-copy > p,
#rooms .room-copy > p,
#rooms .room-card h3,
#rooms .room h3 {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

#rooms .room-card h3,
#rooms .room h3 {
  font-size: clamp(24px, 2.2vw, 34px);
  margin-bottom: 28px;
}

#rooms .room-card details,
#rooms .room details {
  margin-bottom: 24px;
}

#rooms .room-booking {
  align-items: center;
  align-self: flex-start;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  margin-top: auto;
  min-height: 50px;
  padding: 12px 26px;
  transition: background-color .2s ease, transform .2s ease;
}

#rooms .room-booking:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
}

@media (hover: hover) {
  #rooms .room-booking:hover {
    background: var(--house);
    transform: translateY(-2px);
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #rooms .room-grid {
    gap: 28px;
  }

  #rooms .room-card,
  #rooms .room {
    grid-template-columns: minmax(0, 52fr) minmax(0, 48fr);
    min-height: 320px;
  }

  #rooms .room-card > img,
  #rooms .room > img,
  #rooms .room-carousel {
    min-height: 320px;
  }

  #rooms .room-card-copy,
  #rooms .room-copy {
    padding: 28px;
  }

  #rooms .room-card h3,
  #rooms .room h3 {
    font-size: clamp(21px, 2.6vw, 28px);
    margin-bottom: 22px;
  }
}

@media (max-width: 767px) {
  #rooms {
    padding-left: 20px;
    padding-right: 20px;
  }

  #rooms .room-grid {
    gap: 28px;
    margin-top: 28px;
  }

  #rooms .room-card,
  #rooms .room {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  #rooms .room-card > img,
  #rooms .room > img,
  #rooms .room-carousel {
    aspect-ratio: 4 / 3;
    height: auto;
    min-height: 0;
  }

  #rooms .room-card-copy,
  #rooms .room-copy {
    padding: 24px 22px;
  }

  #rooms .room-card h3,
  #rooms .room h3 {
    font-size: 23px;
    line-height: 1.3;
    margin: 8px 0 20px;
  }

  #rooms .room-card-copy > p,
  #rooms .room-copy > p {
    font-size: 13px;
    line-height: 1.55;
  }

  #rooms .room-booking {
    align-self: stretch;
    min-height: 50px;
    width: 100%;
  }

  #rooms .room-carousel-arrow {
    height: 50px;
    width: 50px;
  }
}

@media (max-width: 480px) {
  #rooms {
    padding-left: 18px;
    padding-right: 18px;
  }

  #rooms .room-card-copy,
  #rooms .room-copy {
    padding: 20px 18px;
  }

  #rooms .room-card h3,
  #rooms .room h3 {
    font-size: 20px;
  }

  #rooms .room-card summary,
  #rooms .room summary,
  #rooms .room-booking {
    font-size: 14px;
  }

  #rooms .room-carousel-arrow {
    height: 48px;
    width: 48px;
  }
}

