/* Hotels funnel styles */
.sa-checkout__container--wide { max-width: 1100px; }

.sa-hotel-search {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 22px;
}
.sa-hotel-search__field { display: flex; flex-direction: column; gap: 4px; }
.sa-hotel-search__field span { font-size: 13px; font-weight: 600; color: #555; }
.sa-hotel-search__field input, .sa-hotel-search__field select {
  padding: 10px 12px; border: 1px solid #ddd; border-radius: 10px;
  font-size: 15px; font-family: inherit; background: #fafafa;
}
.sa-hotel-search__field input:focus, .sa-hotel-search__field select:focus {
  outline: none; border-color: #0018a8; background: #fff;
}
.sa-hotel-search__btn { padding: 12px 24px; white-space: nowrap; }

@media (max-width: 800px) {
  .sa-hotel-search { grid-template-columns: 1fr 1fr; }
  .sa-hotel-search__btn { grid-column: 1 / -1; }
}

/* Hotel card list */
.sa-hotel-list { display: grid; gap: 16px; }
.sa-hotel-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 260px 1fr 220px;
  gap: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
  text-decoration: none; color: inherit;
}
.sa-hotel-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.sa-hotel-card__img { background-size: cover; background-position: center; min-height: 200px; }
.sa-hotel-card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.sa-hotel-card__name { margin: 0; font-size: 20px; color: #0018a8; }
.sa-hotel-card__stars { color: #f4c000; font-size: 14px; }
.sa-hotel-card__theme { color: #777; font-size: 13px; }
.sa-hotel-card__badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.sa-hotel-card__price {
  background: #f7f8fb;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 16px; gap: 4px;
}
.sa-hotel-card__per-night { font-size: 12px; color: #777; }
.sa-hotel-card__select {
  background: #ff6a00; color: #fff;
  padding: 10px 20px; border-radius: 24px;
  font-weight: 700; font-size: 14px;
  margin-top: 6px;
}

@media (max-width: 800px) {
  .sa-hotel-card { grid-template-columns: 1fr; }
  .sa-hotel-card__img { min-height: 180px; }
}

/* Hotel detail page */
.sa-hotel-detail {
  background: #fff; border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  margin-bottom: 24px;
}
.sa-hotel-detail__hero { height: 320px; background-size: cover; background-position: center; }
.sa-hotel-detail__body { padding: 24px; }
.sa-hotel-detail__theme { color: #0018a8; font-weight: 600; margin-bottom: 8px; }
.sa-hotel-detail__desc { color: #444; line-height: 1.6; }
.sa-hotel-detail__features { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.sa-hotel-detail__feature {
  background: #f0f4ff; color: #0018a8;
  padding: 6px 12px; border-radius: 20px;
  font-size: 13px;
}

.sa-section-h2 {
  font-size: 22px; color: #0018a8;
  margin: 24px 0 14px;
}

.sa-room-list { display: grid; gap: 12px; }
.sa-room-card {
  background: #fff; border-radius: 14px;
  padding: 16px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.05);
  display: grid; grid-template-columns: 1fr auto auto; gap: 16px;
  align-items: center;
}
.sa-room-card__name { font-weight: 700; font-size: 16px; margin: 0 0 4px; }
.sa-room-card__guests { color: #777; font-size: 13px; }
.sa-room-card__price { text-align: right; }
.sa-room-card__select {
  background: #ff6a00; color: #fff; border: 0;
  padding: 10px 20px; border-radius: 22px;
  font-weight: 700; font-size: 14px; cursor: pointer;
}
.sa-room-card__select:hover { background: #e65d00; }

/* Empty/intro state */
.sa-empty {
  text-align: center; color: #999;
  padding: 48px 24px;
  background: #fff; border-radius: 14px;
  border: 1px dashed #ddd;
}


/* Full-area clickable date range field */
.sa-hotel-search__field--dates {
  position: relative;
}
.sa-hotel-search__field--dates input {
  cursor: pointer;
  background: #fafafa url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23999'><path d='M19 4h-1V2h-2v2H8V2H6v2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2z'/></svg>") no-repeat right 12px center;
  background-size: 18px;
  padding-right: 40px !important;
}

/* Bigger flatpickr calendar */
.flatpickr-calendar { font-family: 'Poppins', system-ui, sans-serif; font-size: 14px !important; box-shadow: 0 12px 36px rgba(0,0,0,.18) !important; border-radius: 12px !important; }
.flatpickr-calendar .flatpickr-day { height: 38px !important; line-height: 38px !important; }
.flatpickr-calendar.inRange,
.flatpickr-day.inRange { background: #f0f4ff !important; border-color: #f0f4ff !important; box-shadow: none !important; color: #0018a8 !important; }
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange { background: #0018a8 !important; border-color: #0018a8 !important; }

/* Hotel card images — minimum height + fallback */
.sa-hotel-card__img {
  min-height: 200px !important;
  background-color: #e8eef7;
}

/* Image gallery on paso2 */
.sa-gallery {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  background: #e8eef7;
}
.sa-gallery__track { position: absolute; inset: 0; }
.sa-gallery__slide {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity .25s ease;
}
.sa-gallery__slide[data-active='1'] { opacity: 1; }
.sa-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.5); color: #fff; border: 0;
  width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; font-size: 24px; line-height: 0;
  display: flex; align-items: center; justify-content: center;
}
.sa-gallery__nav:hover { background: rgba(0,0,0,.75); }
.sa-gallery__nav--prev { left: 16px; }
.sa-gallery__nav--next { right: 16px; }
.sa-gallery__dots {
  position: absolute; bottom: 16px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.sa-gallery__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.5);
  border: 0; padding: 0; cursor: pointer;
}
.sa-gallery__dot.is-active { background: #fff; width: 24px; border-radius: 4px; }

/* Room card: 4 columns when room has photo */
.sa-room-card { 
  grid-template-columns: 180px 1fr auto auto;
  padding: 14px;
  align-items: center;
}
.sa-room-card__img {
  width: 180px; height: 120px;
  border-radius: 10px;
  background-size: cover; background-position: center;
  background-color: #e8eef7;
}
@media (max-width: 700px) {
  .sa-room-card { grid-template-columns: 1fr; }
  .sa-room-card__img { width: 100%; height: 140px; }
}
