/* A catalogue hotel page: head, gallery, content blocks and the booking card. */

/* Hotel head */
.cx-hotel-head { margin-bottom: 18px; }
.cx-kind { color: var(--muted); margin: 0 0 10px; }
.cx-stars { color: var(--star); letter-spacing: 1px; }
.cx-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 650;
  font-size: .92rem;
  margin-bottom: 10px;
}
.cx-badge b {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 32px;
  padding: 0 7px;
  border-radius: 10px 10px 10px 3px;
  background: var(--good);
  color: #fff;
  font-weight: 800;
}
a.cx-badge:hover { text-decoration: none; }
.cx-address { color: var(--muted); }
.cx-address span { color: var(--ink); font-weight: 650; }
.cx-map { white-space: nowrap; font-weight: 650; }

/* Gallery */
.cx-gallery { margin: 0 0 22px; }
.cx-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cx-photo {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  background: #e3eefb;
  aspect-ratio: 16 / 10;
}
.cx-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.cx-photo:hover img { transform: scale(1.03); }
.cx-photo-lead { grid-column: span 2; grid-row: span 2; border-radius: 22px; }
.cx-more-photos { margin-top: 10px; }
.cx-more-photos summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  color: var(--ink-strong);
  background: #fff;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.cx-more-photos summary::-webkit-details-marker { display: none; }
.cx-photos-rest { margin-top: 10px; }

/* Two columns: content and the booking card */
.cx-hotel { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cx-hotel-side { position: sticky; top: 18px; }

.cx-block {
  background: var(--card);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 20px 22px 14px;
  margin-bottom: 16px;
}
.cx-block h3 { margin-top: 4px; }
.cx-note { color: var(--soft); font-size: .86rem; }

.cx-amenity ul, .cx-facts { margin: 0; padding-left: 1.1em; }
.cx-amenity li, .cx-facts li { margin-bottom: 4px; }

.cx-amenities { columns: 2 240px; column-gap: 28px; }
.cx-amenity { break-inside: avoid; margin-bottom: 14px; }

.cx-scores { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; }
.cx-scores li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; }
.cx-scores meter { grid-column: 1 / -1; width: 100%; height: 8px; accent-color: var(--blue); }

.cx-reviews { display: grid; gap: 12px; margin-bottom: 8px; }
.cx-review { background: #f7faff; border-radius: 18px; padding: 14px 16px; }
.cx-review header { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .88rem; margin-bottom: 6px; }
.cx-review-score {
  color: #fff;
  background: var(--good);
  border-radius: 8px 8px 8px 2px;
  padding: 1px 7px;
  font-size: .9rem;
}
.cx-review p { margin: 0 0 6px; }
.cx-plus span { color: var(--good); font-weight: 700; }
.cx-minus span { color: #c2410c; font-weight: 700; }

/* Booking card */
.cx-book {
  background: var(--card);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 20px;
}
.cx-dates, .cx-guests, .cx-ages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-ages { margin-top: 2px; }
.cx-ages[data-ready] .cx-age[hidden] { display: none; }
.cx-field { display: grid; gap: 5px; font-size: .84rem; color: var(--muted); margin-bottom: 10px; }
.cx-field input, .cx-field select {
  width: 100%;
  min-height: 46px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #f7faff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 9px 12px;
}
.cx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 8px 0 12px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(var(--indigo-a), var(--indigo-b));
  box-shadow: 0 16px 30px rgba(48, 34, 160, 0.32);
  color: #fff;
  font: 800 1.08rem/1.2 var(--round);
  cursor: pointer;
  text-align: center;
  padding: 13px 28px;
}
.cx-button:hover { filter: brightness(1.08); text-decoration: none; }
.cx-page-head .cx-button { width: auto; }

