/* HyroxDeals hotel booking — industrial race-weekend concierge */
.search-row { grid-template-columns: 1.3fr .9fr .9fr .55fr .55fr auto; }

.hotel-search-box {
  position: relative;
  overflow: hidden;
}

.hotel-search-box::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--gold);
}

.hotel-search-meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.hotel-search-meta strong { color: var(--text); }

.hotel-result-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
}

.hotel-result-status strong { color: var(--text); }

.hotel-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: #52d681;
  box-shadow: 0 0 0 4px rgba(82, 214, 129, .12);
}

.hotel-card.hotel-card-live {
  grid-template-columns: 210px minmax(0, 1fr) 190px;
  min-height: 176px;
  cursor: pointer;
  isolation: isolate;
}

.hotel-card.hotel-card-live:focus-within,
.hotel-card.hotel-card-live:hover {
  transform: translateY(-2px);
  border-color: rgba(245, 195, 0, .62);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .36);
}

.hotel-card-open {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hotel-card-live .hotel-img {
  width: 210px;
  height: 100%;
  min-height: 176px;
  position: relative;
}

.hotel-card-live .hotel-img::after {
  content: "View hotel";
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 7px;
  background: rgba(0, 0, 0, .72);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hotel-card-live .hotel-info { padding: 22px 24px; }
.hotel-card-live .hotel-name {
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.hotel-card-live .hotel-loc { margin: 8px 0 10px; line-height: 1.5; }

.hotel-venue-distance {
  display: grid;
  gap: 3px;
  margin: 12px 0 14px;
  padding: 11px 13px;
  border: 1px solid rgba(245, 195, 0, .36);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  background: rgba(245, 195, 0, .09);
}

.hotel-venue-distance strong {
  color: var(--gold);
  font-size: 14px;
  line-height: 1.25;
}

.hotel-venue-distance span { color: #f2f2f2; font-size: 12px; }
.hotel-venue-distance small { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.hotel-venue-distance.compact { margin: 8px 0; padding: 8px 10px; }
.hotel-venue-distance.compact strong { font-size: 12px; }
.hotel-venue-distance.unavailable { border-color: rgba(255,255,255,.14); border-left-color: #777; background: rgba(255,255,255,.035); }
.hotel-venue-distance.unavailable strong { color: #c6c6c6; }

.hotel-rating-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hotel-rating-score {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 7px;
  border-radius: 7px;
  background: var(--gold);
  color: var(--black);
  font-weight: 900;
}

.hotel-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.hotel-badge {
  padding: 5px 8px;
  border: 1px solid rgba(245, 195, 0, .22);
  border-radius: 999px;
  background: rgba(245, 195, 0, .08);
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hotel-badge.refundable {
  border-color: rgba(82, 214, 129, .28);
  background: rgba(82, 214, 129, .08);
  color: #65de91;
}
.hotel-badge.savings { border-color:rgba(82,214,129,.45); background:rgba(82,214,129,.14); color:#76e49c; }
.hotel-public-price { margin-top:5px; color:#8f8f8f; font-size:10px; text-decoration:line-through; }

.hotel-card-live .hotel-price-col {
  align-items: stretch;
  padding: 22px 18px;
  text-align: right;
}

.hotel-card-live .hotel-price {
  font-size: 36px;
  line-height: .95;
}

.hotel-card-live .hotel-price small {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--muted);
}

.hotel-stay-total { margin-top: 7px; color: #d8d8d8; font-size: 12px; }
.hotel-tax-note { margin-top: 3px; color: var(--muted); font-size: 10px; }
.hotel-view-rooms {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  cursor: pointer;
}

.hotel-card-skeleton {
  height: 176px;
  margin-bottom: 16px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent),
    linear-gradient(90deg, var(--dark2) 0 210px, #171717 210px);
  background-size: 220% 100%, 100% 100%;
  animation: hotel-shimmer 1.25s linear infinite;
}

@keyframes hotel-shimmer { to { background-position: -220% 0, 0 0; } }

body.hotel-booking-open { overflow: hidden; }

.booking-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(14px);
}
.booking-overlay.open { display: flex; }

.booking-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: min(1180px, 100%);
  height: min(900px, calc(100dvh - 48px));
  max-height: min(900px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(245, 195, 0, .38);
  border-radius: 18px;
  background: #0c0c0c;
  box-shadow: 0 34px 90px rgba(0, 0, 0, .66);
}

.booking-header {
  display: grid;
  grid-template-columns: 120px 1fr 120px;
  align-items: center;
  min-height: 66px;
  padding: 0 20px;
  border-bottom: 1px solid #282828;
  background: linear-gradient(90deg, #111, #171300 50%, #111);
}
.booking-header-brand {
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: .08em;
  text-align: center;
  text-transform: uppercase;
}
.booking-back,
.booking-close {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.booking-back { text-align: left; }
.booking-close { text-align: right; }
.booking-back:hover,.booking-close:hover { color: var(--gold); }

.booking-progress { display: flex; gap: 6px; padding: 10px 20px; border-bottom: 1px solid #202020; }
.booking-progress span { height: 3px; flex: 1; border-radius: 999px; background: #343434; }
.booking-progress span.active { background: var(--gold); }

.booking-scroll {
  min-height: 0;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-bottom: max(30px, env(safe-area-inset-bottom));
  scroll-padding-block: 18px max(48px, env(safe-area-inset-bottom));
  scrollbar-gutter: stable;
}
.booking-loading { min-height: 520px; display: grid; place-items: center; padding: 48px; text-align: center; }
.booking-loading .spinner { margin: 0 auto 16px; }

.booking-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 5px;
  padding: 16px 16px 0;
}
.booking-gallery button {
  position: relative;
  overflow: hidden;
  border: 0;
  background: #202020;
  cursor: pointer;
}
.booking-gallery button:first-child { grid-row: 1 / 3; border-radius: 12px 0 0 12px; }
.booking-gallery button:nth-child(3) { border-radius: 0 12px 0 0; }
.booking-gallery button:nth-child(5) { border-radius: 0 0 12px 0; }
.booking-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.booking-gallery button:hover img { transform: scale(1.025); }
.booking-gallery-more {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(0,0,0,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.booking-photo-viewer {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: none;
  grid-template-rows: auto minmax(0, 1fr);
  background: rgba(5,5,5,.98);
}
.booking-photo-viewer.open { display: grid; }
.booking-photo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 18px;
  border-bottom: 1px solid #2b2b2b;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.booking-photo-toolbar button {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}
.booking-photo-toolbar button:hover { color: var(--gold); }
.booking-photo-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 24px 72px;
}
.booking-photo-stage img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: calc(100vh - 150px);
  object-fit: contain;
}
.booking-photo-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 46px;
  height: 46px;
  transform: translateY(-50%);
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  background: rgba(0,0,0,.62);
  color: #fff;
  font-size: 21px;
  cursor: pointer;
}
.booking-photo-nav:hover { border-color: var(--gold); color: var(--gold); }
.booking-photo-nav.previous { left: 16px; }
.booking-photo-nav.next { right: 16px; }

.booking-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  padding: 28px;
}
.booking-hotel-title {
  font-family: var(--font-head);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}
.booking-hotel-title .stars { color: var(--gold); font-size: .5em; white-space: nowrap; }
.booking-address { margin-top: 9px; color: var(--muted); font-size: 13px; }
.booking-description {
  max-width: 780px;
  margin-top: 18px;
  color: #c4c4c4;
  font-size: 13px;
  line-height: 1.75;
}
.booking-description p + p { margin-top: 8px; }
.booking-amenities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.booking-amenity {
  padding: 7px 10px;
  border: 1px solid #353535;
  border-radius: 8px;
  color: #d5d5d5;
  font-size: 11px;
}

.booking-section-title {
  margin-top: 34px;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.booking-checkout-status {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(245,195,0,.32);
  border-radius: 10px;
  background: rgba(245,195,0,.07);
  color: #d9cfa9;
  font-size: 11px;
  line-height: 1.55;
}
.booking-checkout-status strong { color: var(--gold); font-size: 12px; }
.booking-checkout-stage {
  width: min(680px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 64px;
}
.booking-checkout-stage h2 { margin: 8px 0 18px; font-family: var(--font-head); font-size: clamp(30px, 5vw, 48px); line-height: .95; text-transform: uppercase; }
.booking-checkout-kicker { color: var(--gold); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.booking-checkout-review { overflow: hidden; border: 1px solid var(--border); border-radius: 14px; background: #131313; }
.booking-checkout-review > div { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.booking-checkout-review > div:last-child { border-bottom: 0; }
.booking-checkout-review span { color: var(--muted); font-size: 12px; }
.booking-checkout-review strong { text-align: right; font-size: 13px; }
.booking-checkout-review strong.danger { color: #ff9d75; }
.booking-checkout-review .total { background: #191919; }
.booking-checkout-review .total strong { color: var(--gold); font-family: var(--font-head); font-size: 24px; }
.booking-checkout-copy { margin: 18px 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.booking-checkout-primary,
.booking-checkout-secondary { width: 100%; min-height: 48px; border-radius: 9px; font-weight: 900; cursor: pointer; }
.booking-checkout-primary { border: 0; background: var(--gold); color: #080808; }
.booking-checkout-secondary { margin-top: 10px; border: 1px solid var(--border); background: #111; color: #fff; }
.booking-payment-target { min-height: 220px; padding: 24px; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: #111; }
.booking-payment-target .spinner { margin: 44px auto 12px; }
.booking-payment-target p { text-align: center; color: #555; }
.booking-hotel-details { margin-top: 32px; padding-top: 2px; border-top: 1px solid #242424; }
.booking-hotel-details .booking-section-title { margin-top: 24px; }

.booking-room {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr) 170px;
  gap: 0;
  margin-top: 14px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 12px;
  background: #151515;
}
.booking-room-photo { min-height: 158px; background: #242424 center/cover; }
.booking-room-copy { padding: 17px 18px; }
.booking-room-name { font-size: 14px; font-weight: 800; }
.booking-room-meta { margin-top: 7px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.booking-policy { margin-top: 10px; color: #65de91; font-size: 11px; font-weight: 800; }
.booking-policy.nonrefundable { color: #f29b72; }
.booking-room-price { display: flex; flex-direction: column; justify-content: space-between; padding: 17px; border-left: 1px solid #333; text-align: right; }
.booking-room-total { color: var(--gold); font-family: var(--font-head); font-size: 29px; font-weight: 900; }
.booking-room-nightly { color: var(--muted); font-size: 10px; }
.booking-room-select {
  padding: 10px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--black);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
}

.booking-summary {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 18px;
  border: 1px solid #343434;
  border-radius: 12px;
  background: #151515;
}
.booking-summary h3 { font-family: var(--font-head); font-size: 22px; text-transform: uppercase; }
.booking-summary-row { display: flex; justify-content: space-between; gap: 16px; margin-top: 11px; color: var(--muted); font-size: 11px; }
.booking-summary-row strong { color: var(--text); text-align: right; }
.booking-summary-secure { margin-top: 16px; padding-top: 14px; border-top: 1px solid #333; color: #65de91; font-size: 10px; text-align: center; }

.booking-unavailable {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid rgba(245,195,0,.28);
  border-radius: 9px;
  background: rgba(245,195,0,.07);
  color: #d9cfa9;
  font-size: 11px;
  line-height: 1.55;
}
.booking-gate-back {
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(245,195,0,.55);
  border-radius: 7px;
  background: transparent;
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  cursor: pointer;
}

.child-age-fields { display: none; grid-column: 1 / -1; gap: 10px; grid-template-columns: repeat(4, minmax(0,1fr)); }
.child-age-fields.visible { display: grid; }

@media (max-width: 900px) {
  .search-row { grid-template-columns: 1fr 1fr; }
  .search-btn { grid-column: 1 / -1; }
  .hotel-card.hotel-card-live { grid-template-columns: 140px minmax(0,1fr); }
  .hotel-card-live .hotel-img { width: 140px; }
  .hotel-card-live .hotel-price-col { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 18px; text-align: left; }
  .hotel-card-live .hotel-view-rooms { width: auto; margin: 0 0 0 auto; }
  .booking-content { grid-template-columns: 1fr; padding: 20px; }
  .booking-summary { position: static; }
  .booking-gallery { grid-template-rows: 120px 80px; }
  .booking-section-title { margin-top: 24px; }
  .booking-room-photo { min-height: 132px; }
  .booking-room-copy,
  .booking-room-price { padding: 14px; }
}

@media (max-width: 640px) {
  .search-row { grid-template-columns: 1fr; }
  .booking-overlay { padding: 0; }
  .booking-shell { width: 100%; height: 100dvh; max-height: none; border: 0; border-radius: 0; }
  .booking-header { grid-template-columns: 80px 1fr 80px; min-height: 58px; padding: 0 14px; }
  .booking-scroll { max-height: none; padding-bottom: max(38px, env(safe-area-inset-bottom)); }
  .booking-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 90px; padding: 10px 10px 0; }
  .booking-gallery button:first-child { grid-column: 1 / -1; grid-row: auto; border-radius: 10px 10px 0 0; }
  .booking-gallery button:nth-child(n+4) { display: none; }
  .booking-gallery button:nth-child(2) { border-radius: 0 0 0 10px; }
  .booking-gallery button:nth-child(3) { border-radius: 0 0 10px 0; }
  .booking-photo-stage { padding: 16px 50px; }
  .booking-photo-nav { width: 38px; height: 38px; }
  .booking-photo-nav.previous { left: 7px; }
  .booking-photo-nav.next { right: 7px; }
  .booking-content { padding: 20px 16px 40px; }
  .booking-room { grid-template-columns: 96px minmax(0,1fr); }
  .booking-room-photo { min-height: 132px; }
  .booking-room-price { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 12px; border-top: 1px solid #333; border-left: 0; text-align: left; }
  .booking-room-select { margin-left: auto; }
  .booking-checkout-stage { width: min(100% - 28px, 680px); padding: 28px 0 48px; }
  .booking-checkout-review > div { grid-template-columns: 1fr; gap: 5px; }
  .booking-checkout-review strong { text-align: left; }
  .hotel-card.hotel-card-live { grid-template-columns: 1fr; }
  .hotel-card-live .hotel-img { width: 100%; min-height: 210px; }
  .hotel-card-live .hotel-price-col { display: grid; grid-template-columns: 1fr auto; }
  .hotel-card-live .hotel-view-rooms { grid-column: 1 / -1; width: 100%; margin: 12px 0 0; }
  .child-age-fields { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hotel-card-skeleton { animation: none; }
  .booking-gallery img { transition: none; }
}
