/* Intixus Booking Engine UI — booking search bar */

.ix-booking-search {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px 16px 20px;
  border-top: 1px solid #e5e7eb;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.ix-booking-search__group {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ix-booking-search__field {
  min-width: 0;
}

.ix-booking-search__label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.ix-booking-search__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #6b7280;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.ix-booking-search__control svg {
  flex-shrink: 0;
  pointer-events: none;
  color: #059669;
}

.ix-booking-search__control:focus-within {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12);
}

.ix-booking-search__control input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0.01;
  cursor: pointer;
  z-index: 3;
  font-size: 16px;
}

.ix-booking-search__display {
  flex: 1;
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.ix-booking-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ix-booking-stepper__btn {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: #f3f4f6;
  color: #111827;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.ix-booking-stepper__btn:hover {
  background: #ecfdf5;
  color: #047857;
}

.ix-booking-stepper__value {
  min-width: 1.75rem;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.ix-booking-search__action {
  width: 100%;
}

.ix-booking-search__btn {
  width: 100%;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #111827 0%, #1f2937 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(17, 24, 39, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.ix-booking-search__btn:hover {
  background: linear-gradient(135deg, #000 0%, #111827 100%);
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.22);
  transform: translateY(-1px);
}

@media (min-width: 640px) {
  .ix-booking-search {
    padding: 20px 20px 22px;
  }

  .ix-booking-search__group--dates,
  .ix-booking-search__group--guests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .ix-booking-search {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
  }

  .ix-booking-search__action {
    width: auto;
  }

  .ix-booking-search__btn {
    width: auto;
    min-width: 148px;
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .ix-booking-search {
    gap: 16px;
    padding: 22px 24px 24px;
  }

  .ix-booking-search__display {
    font-size: 0.92rem;
  }
}

@media (max-width: 479px) {
  .ix-booking-search__group {
    grid-template-columns: 1fr;
  }
}

.ix-search-summary {
  margin: 0 0 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ix-search-summary.is-updated {
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

.ix-room-list {
  display: grid;
  gap: 24px;
}

.hotel-booking-layout__title {
  margin: 0 0 16px;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: #111827;
}

.ix-room-card {
  display: grid;
  gap: 0;
  border-radius: 16px;
  overflow: visible;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
}

.ix-room-card__media {
  position: relative;
  min-height: 220px;
  background: #f3f4f6;
  border-radius: 16px 0 0 16px;
  overflow: hidden;
}

@media (min-width: 960px) {
  .ix-room-card {
    grid-template-columns: 260px minmax(0, 1fr) 300px;
    align-items: stretch;
  }

  .ix-room-card--expanded {
    grid-template-columns: 260px minmax(280px, 1fr) minmax(340px, 400px);
  }
}

@media (min-width: 960px) and (max-width: 1120px) {
  .ix-room-card--expanded {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .ix-room-card--expanded .ix-room-card__booking {
    grid-column: 1 / -1;
    border-top: 1px solid #eef0f3;
    border-left: 0;
  }
}

@media (max-width: 959px) {
  .ix-room-card__media {
    border-radius: 16px 16px 0 0;
  }
}

.ix-room-carousel {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.ix-room-carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ix-room-carousel__slide.is-active {
  opacity: 1;
}

.ix-room-carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
}

.ix-room-carousel__btn--prev {
  left: 10px;
}

.ix-room-carousel__btn--next {
  right: 10px;
}

.ix-room-card__info {
  padding: 20px 22px;
  border-top: 1px solid #eef0f3;
  min-width: 0;
}

.ix-room-card__booking {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 14px;
  padding: 18px 20px 20px;
  border-top: 1px solid #eef0f3;
  background: #fafafa;
  min-width: 0;
}

.ix-room-config {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: visible;
  background: #fff;
  max-height: min(52vh, 420px);
  overflow-y: auto;
}

.ix-room-config__units {
  display: grid;
  gap: 0;
}

.ix-room-unit {
  padding: 14px 16px 12px;
  border-bottom: 1px solid #eef0f3;
}

.ix-room-unit:last-child {
  border-bottom: 0;
}

.ix-room-unit__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ix-room-unit__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: #111827;
}

.ix-room-unit__price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #111827;
  white-space: nowrap;
}

.ix-room-unit__fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: end;
}

.ix-room-unit__field {
  display: grid;
  gap: 5px;
  min-width: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
}

.ix-room-unit__field:first-child {
  grid-column: 1 / -1;
}

.ix-room-unit__field select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 30px 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: #111827;
  font-size: 0.76rem;
  font-weight: 600;
  appearance: none;
  -webkit-appearance: none;
  text-overflow: ellipsis;
}

.ix-room-unit__field select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

@media (max-width: 520px) {
  .ix-room-unit__fields {
    grid-template-columns: 1fr;
  }

  .ix-room-unit__field:first-child {
    grid-column: auto;
  }
}

@media (min-width: 960px) {
  .ix-room-card__info {
    border-top: 0;
    border-right: 1px solid #eef0f3;
  }

  .ix-room-card__booking {
    border-top: 0;
  }
}

.ix-room-card__title {
  margin: 0 0 10px;
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.ix-room-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #15803d;
}

.ix-room-card__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.15);
  font-size: 0.72rem;
}

.ix-room-card__facts {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  color: #374151;
  font-size: 0.86rem;
}

.ix-room-card__facts li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.ix-room-card__fact-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  border-radius: 8px;
  background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid rgba(16, 185, 129, 0.14);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ix-room-card__fact-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.ix-room-card__tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-items: start;
}

.ix-room-card__tags li {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 24px;
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.35;
}

.ix-room-card__amenity-icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #047857;
  border-radius: 8px;
  background: linear-gradient(145deg, #f8fafc 0%, #ecfdf5 100%);
  border: 1px solid rgba(16, 185, 129, 0.12);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ix-room-card__amenity-icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.ix-room-card__discount {
  margin: 0 0 4px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #15803d;
}

.ix-room-card__rate {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.ix-room-card__now {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1c1917;
}

.ix-room-card__was {
  font-size: 0.92rem;
  color: #dc2626;
  text-decoration: line-through;
}

.ix-room-card__was[hidden] {
  display: none;
}

.ix-room-card__tax,
.ix-room-card__meta {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #78716c;
}

.ix-room-card__select-wrap {
  margin-top: auto;
}

.ix-room-card__select-label {
  position: relative;
  display: block;
}

.ix-room-card__select-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.ix-room-select {
  width: 100%;
  min-height: 48px;
  padding: 0 42px 0 18px;
  border: 0;
  border-radius: 999px;
  background-color: #111827;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.ix-room-select option {
  color: #111827;
  background: #fff;
}

.ix-room-card__select-chevron {
  display: none;
}

.ix-room-card__soldout {
  margin: 12px 0 0;
  font-weight: 800;
  color: #dc2626;
}

.ix-room-card--soldout {
  opacity: 0.72;
}

.ix-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(236, 253, 245, 0.98);
  border-top: 1px solid rgba(22, 163, 74, 0.18);
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.ix-sticky-bar__inner {
  width: min(94%, 1240px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ix-sticky-bar__meta {
  display: grid;
  gap: 2px;
  font-size: 0.82rem;
  color: #374151;
}

.ix-sticky-bar__meta strong {
  font-size: 1.02rem;
  color: #111827;
}

#ix-sticky-guests:not(:empty)::before {
  content: "(";
}

#ix-sticky-guests:not(:empty)::after {
  content: ")";
}

.ix-reserve-btn {
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #16a34a;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.15s ease;
}

.ix-reserve-btn:hover:not(:disabled) {
  background: #15803d;
}

.ix-reserve-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.ix-modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, 0.55);
}

.ix-modal.is-open {
  display: flex;
}

.ix-modal__dialog {
  width: min(100%, 640px);
  max-height: min(85vh, 720px);
  overflow: auto;
  padding: 24px;
  border-radius: 16px;
  background: #fff;
}

.ix-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.ix-modal__close {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #64748b;
}

.ix-facility-group + .ix-facility-group {
  margin-top: 16px;
}

.ix-facility-group h4 {
  margin: 0 0 8px;
  font-size: 0.92rem;
}

.ix-facility-group ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #57534e;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .ix-facility-group ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.ix-modal-open {
  overflow: hidden;
}

.ix-checkout-modal__dialog {
  width: min(100%, 520px);
}

.ix-checkout-summary {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #ecfdf5;
  border: 1px solid rgba(22, 163, 74, 0.18);
  color: #14532d;
  font-size: 0.88rem;
  line-height: 1.55;
}

.ix-checkout-summary p {
  margin: 0;
}

.ix-checkout-summary p + p {
  margin-top: 6px;
}

.ix-checkout-summary__total {
  margin-top: 8px !important;
  font-size: 0.95rem;
}

.ix-checkout-form {
  display: grid;
  gap: 14px;
}

.ix-checkout-field {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.ix-checkout-field em {
  color: #dc2626;
  font-style: normal;
}

.ix-checkout-field input,
.ix-checkout-field select {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #111827;
  font-size: 0.92rem;
  font-weight: 500;
}

.ix-checkout-field input:focus,
.ix-checkout-field select:focus {
  outline: none;
  border-color: #16a34a;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.12);
}

.ix-checkout-field input[readonly] {
  background: #f9fafb;
  color: #4b5563;
}

.ix-checkout-hint {
  font-size: 0.74rem;
  font-weight: 500;
  color: #6b7280;
}

.ix-checkout-errors {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 0.82rem;
}

.ix-checkout-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.ix-checkout-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.ix-checkout-btn--ghost {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}

.ix-checkout-btn--primary {
  border: 0;
  background: #16a34a;
  color: #fff;
}

.ix-checkout-btn--primary:hover:not(:disabled) {
  background: #15803d;
}

.ix-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

body.hotel-has-sticky {
  padding-bottom: 112px;
}

body.hotel-has-sticky .hotel-booking-layout {
  padding-bottom: 120px;
}

.ix-powered {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.ix-powered a {
  color: #6366f1;
  font-weight: 700;
  text-decoration: none;
}

.ix-powered a:hover {
  text-decoration: underline;
}
