.gh-rooms-catalog {
  padding: clamp(72px, 8vw, 112px) 0;
  background:
    radial-gradient(circle at 88% 5%, rgba(255, 255, 255, .72), transparent 28%),
    linear-gradient(180deg, #e8eff0 0%, #dfeaec 100%);
}

.gh-rooms-intro {
  margin-bottom: 36px;
}

.gh-rooms-intro .gh-eyebrow {
  margin-bottom: 18px;
}

.gh-rooms-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  align-items: end;
  gap: 48px;
}

.gh-rooms-heading h2 {
  max-width: 720px;
}

.gh-rooms-heading .gh-muted {
  font-size: 16px;
  line-height: 1.65;
}

.gh-room-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  align-items: end;
  gap: 16px;
  padding: 20px;
  margin-bottom: 32px;
  border: 1px solid rgba(37, 77, 89, .14);
  border-radius: 18px;
  background: rgba(247, 251, 251, .72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.gh-room-controls fieldset {
  min-width: 0;
  padding: 0;
  margin: 0;
  border: 0;
}

.gh-room-controls legend,
.gh-room-guests > span {
  display: block;
  margin-bottom: 9px;
  color: #405d64;
  font-size: 13px;
  font-weight: 600;
}

.gh-room-category-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gh-room-filter,
.gh-room-reset,
.gh-room-empty-reset {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid rgba(37, 77, 89, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .52);
  color: #17353c;
  transition: color .2s ease, background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.gh-room-filter:hover,
.gh-room-reset:hover,
.gh-room-empty-reset:hover {
  background: #fff;
  border-color: rgba(37, 77, 89, .38);
}

.gh-room-filter.is-active,
.gh-room-filter[aria-pressed="true"] {
  border-color: #173b3d;
  background: #173b3d;
  color: #fff;
}

.gh-room-category-select,
.gh-room-guests select {
  width: 100%;
  min-height: 46px;
  padding: 10px 42px 10px 14px;
  border: 1px solid rgba(37, 77, 89, .2);
  border-radius: 12px;
  background: rgba(255, 255, 255, .82);
  color: #17353c;
}

.gh-room-category-select {
  display: none;
}

.gh-room-reset {
  border-radius: 12px;
  white-space: nowrap;
}

.gh-room-results {
  grid-column: 1 / -1;
  margin: 0;
  color: #536971;
  font-size: 13px;
}

.gh-room-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.gh-room-card {
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(37, 77, 89, .14);
  border-radius: 18px;
  background: rgba(249, 252, 251, .92);
  box-shadow: 0 14px 40px rgba(32, 73, 80, .07);
  transform: translateZ(0);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.gh-room-card:hover {
  border-color: rgba(37, 77, 89, .24);
  box-shadow: 0 20px 48px rgba(32, 73, 80, .12);
  transform: translateY(-3px);
}

.gh-room-card__photo {
  position: relative;
  overflow: hidden;
  display: block;
  aspect-ratio: 3 / 2;
  background: #cbdadd;
}

.gh-room-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.gh-room-card:hover .gh-room-card__photo img {
  transform: scale(1.025);
}

.gh-room-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 24px;
  color: #4e696f;
  text-align: center;
  background: linear-gradient(135deg, #dce8e9, #c4d6d9);
}

.gh-room-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  background: rgba(17, 49, 52, .74);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  backdrop-filter: blur(10px);
}

.gh-room-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.gh-room-card h3 {
  min-height: 2.5em;
  margin: 0 0 17px;
  font: 30px/1.18 var(--serif);
  letter-spacing: -.025em;
}

.gh-room-card h3 a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.gh-room-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 0 0 18px;
  margin: 0 0 18px;
  border-bottom: 1px solid rgba(37, 77, 89, .12);
  list-style: none;
}

.gh-room-card__facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #405d64;
  font-size: 13px;
  white-space: nowrap;
}

.gh-room-card__icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(37, 77, 89, .2);
  border-radius: 50%;
  color: #54777b;
  font-size: 10px;
}

.gh-room-card__description {
  margin: 0;
  color: #344f55;
  font-size: 15px;
  line-height: 1.58;
}

.gh-room-card__note {
  margin: 12px 0 0;
  color: #66797e;
  font-size: 13px;
  line-height: 1.5;
}

.gh-room-card__actions {
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: 10px;
  margin-top: auto;
  padding-top: 24px;
}

.gh-room-card__action {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border: 1px solid #21484c;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: color .2s ease, background-color .2s ease, transform .16s ease;
}

.gh-room-card__action:active,
.gh-room-filter:active,
.gh-room-reset:active,
.gh-room-empty-reset:active {
  transform: scale(.98);
}

.gh-room-card__action--secondary {
  background: rgba(255, 255, 255, .66);
  color: #173b3d;
}

.gh-room-card__action--secondary:hover {
  background: #fff;
}

.gh-room-card__action--primary {
  background: #173b3d;
  color: #fff;
}

.gh-room-card__action--primary:hover {
  background: #285a55;
}

.gh-room-empty {
  padding: 36px 20px;
  border: 1px dashed rgba(37, 77, 89, .3);
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, .46);
}

.gh-room-empty p {
  margin-bottom: 18px;
  font-size: 17px;
}

.gh-room-booking-note {
  margin: 24px 0 0;
  color: #536971;
  font-size: 13px;
}

.js .gh-rooms-ready .gh-room-card:not(.is-visible) {
  opacity: 0;
  transform: translateY(18px);
}

.js .gh-rooms-ready .gh-room-card.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .26s ease, transform .26s ease, box-shadow .24s ease, border-color .24s ease;
}

@media (max-width: 1279px) {
  .gh-room-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gh-room-controls {
    grid-template-columns: minmax(0, 1fr) 210px;
  }

  .gh-room-reset {
    justify-self: start;
  }
}

@media (max-width: 767px) {
  .gh-rooms-catalog {
    padding: 64px 0 72px;
  }

  .gh-rooms-catalog .gh-shell {
    width: min(100% - 32px, 1320px);
  }

  .gh-rooms-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gh-rooms-heading .gh-muted {
    font-size: 16px;
  }

  .gh-room-controls {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .gh-room-category-buttons {
    display: none;
  }

  .gh-room-category-select {
    display: block;
  }

  .gh-room-reset {
    width: 100%;
  }

  .gh-room-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .gh-room-card h3 {
    min-height: 0;
    font-size: 29px;
  }

  .gh-room-card__body {
    padding: 22px 20px 20px;
  }

  .gh-room-card__description {
    font-size: 16px;
  }

  .gh-room-card__actions {
    grid-template-columns: 1fr;
  }

  .gh-room-card__action {
    width: 100%;
    min-height: 48px;
  }
}

@media (max-width: 370px) {
  .gh-rooms-catalog .gh-shell {
    width: min(100% - 32px, 1320px);
  }

  .gh-room-card__facts {
    gap: 8px 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gh-room-card,
  .gh-room-card__photo img,
  .gh-room-card__action,
  .gh-room-filter,
  .gh-room-reset,
  .gh-room-empty-reset {
    transition: none !important;
    transform: none !important;
  }

  .js .gh-rooms-ready .gh-room-card {
    opacity: 1;
    transform: none;
  }
}
