.hwt-wrap {
  --hwt-orange: #ff6b00;
  --hwt-orange-dark: #e45e00;
  --hwt-text: #1f2937;
  --hwt-muted: #6b7280;
  --hwt-line: #e5e7eb;
  --hwt-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  color: var(--hwt-text);
  font-family: Inter, "Segoe UI", Tahoma, sans-serif;
  margin: 0 auto 2rem;
  max-width: 1120px;
  width: 100%;
}

.hwt-wrap *,
.hwt-wrap *::before,
.hwt-wrap *::after {
  box-sizing: border-box;
}

.hwt-form {
  background: #fff;
  border-radius: 18px;
  box-shadow: var(--hwt-shadow);
  padding: 14px;
}

.hwt-form__grid {
  align-items: stretch;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.4fr 1.3fr 1fr auto;
}

.hwt-field {
  border: 1px solid var(--hwt-line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 12px 8px;
  position: relative;
}

.hwt-field__label {
  color: var(--hwt-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.hwt-icon {
  margin-right: 4px;
}

.hwt-input,
.hwt-input--button {
  background: transparent;
  border: 0;
  color: var(--hwt-text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  padding: 4px 0;
  width: 100%;
}

.hwt-input--button {
  cursor: pointer;
  text-align: left;
}

.hwt-dates {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr;
}

.hwt-field--dates,
.hwt-date {
  cursor: pointer;
}

.hwt-date {
  display: block;
  min-height: 34px;
  position: relative;
}

.hwt-date .hwt-input[type="date"] {
  cursor: pointer;
  display: block;
  min-height: 34px;
  width: 100%;
}

.hwt-date .hwt-input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  cursor: pointer;
  height: 100%;
  left: 0;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  opacity: 0;
}

.hwt-date .hwt-input[type="date"]::-webkit-datetime-edit {
  padding: 4px 0;
}

.hwt-search {
  align-self: stretch;
  background: var(--hwt-orange);
  border: 0;
  border-radius: 14px;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
  min-width: 140px;
  padding: 0 28px;
}

.hwt-search:hover {
  background: var(--hwt-orange-dark);
}

.hwt-suggest,
.hwt-guests-panel {
  background: #fff;
  border: 1px solid var(--hwt-line);
  border-radius: 12px;
  box-shadow: var(--hwt-shadow);
  left: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
}

.hwt-suggest button,
.hwt-guests-panel label {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: block;
  font-size: 14px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.hwt-suggest button:hover {
  background: #fff7ed;
}

.hwt-guests-panel {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.hwt-guests-panel input {
  border: 1px solid var(--hwt-line);
  border-radius: 8px;
  margin-top: 4px;
  padding: 6px 8px;
  width: 100%;
}

.hwt-results {
  margin-top: 24px;
}

.hwt-results__title {
  font-size: 28px;
  margin: 0 0 8px;
}

.hwt-filter {
  background: #fff;
  border: 1px solid var(--hwt-line);
  border-radius: 12px;
  margin: 0 0 16px;
  padding: 10px 12px;
}

.hwt-grid {
  display: grid;
  gap: 16px;
}

.hwt-card {
  background: #fff;
  border: 1px solid var(--hwt-line);
  border-radius: 16px;
  display: grid;
  gap: 16px;
  grid-template-columns: 240px 1fr auto;
  overflow: hidden;
}

.hwt-card__image {
  background: #dbeafe center/cover no-repeat;
  min-height: 180px;
}

.hwt-card__body {
  padding: 16px 8px 16px 0;
}

.hwt-card__body h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.hwt-card__meta {
  color: var(--hwt-muted);
  font-size: 14px;
  margin: 0 0 12px;
}

.hwt-price {
  padding: 16px 18px;
  text-align: right;
}

.hwt-price strong {
  color: var(--hwt-orange);
  display: block;
  font-size: 24px;
}

.hwt-price small {
  color: var(--hwt-muted);
}

.hwt-rooms {
  border-top: 1px solid var(--hwt-line);
  grid-column: 1 / -1;
  padding: 0 16px 16px;
}

.hwt-room {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
}

.hwt-book {
  background: var(--hwt-orange);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  padding: 6px 14px;
}

.hwt-modal {
  align-items: center;
  background: rgba(15, 23, 42, 0.55);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.hwt-modal[hidden] {
  display: none;
}

.hwt-modal__card {
  background: #fff;
  border-radius: 16px;
  display: grid;
  gap: 10px;
  max-width: 460px;
  padding: 24px;
  width: calc(100% - 32px);
}

.hwt-modal__card label,
.hwt-modal__card input {
  display: block;
  width: 100%;
}

.hwt-modal__card input {
  border: 1px solid var(--hwt-line);
  border-radius: 8px;
  margin-top: 4px;
  padding: 8px 10px;
}

.hwt-modal__actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.hwt-book-error,
.hwt-cancel {
  color: #b45309;
  font-size: 13px;
}

.hwt-voucher {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 16px;
  margin-top: 16px;
  max-width: 560px;
  padding: 20px;
}

.hwt-voucher-sheet {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  margin: 12px auto 0;
  max-width: 620px;
  overflow: hidden;
}

.hwt-voucher-sheet--compact {
  box-shadow: none;
  margin-top: 0;
}

.hwt-voucher-sheet--compact .hwt-voucher-sheet__head {
  padding: 14px 18px;
}

.hwt-voucher-sheet--compact .hwt-voucher-sheet__title {
  font-size: 22px;
}

.hwt-voucher-sheet--compact .hwt-voucher-sheet__body {
  padding: 16px 18px 18px;
}

.hwt-voucher-sheet--compact .hwt-voucher-sheet__ref {
  font-size: 24px;
}

.hwt-voucher-sheet--compact .hwt-voucher-sheet__grid {
  gap: 10px;
}

.hwt-voucher-sheet--compact .hwt-voucher-sheet__section {
  padding: 10px 12px;
}

.hwt-status-page {
  max-width: 640px;
}

.hwt-booking-panel {
  margin-top: 12px;
}

.hwt-admin-hint {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px;
  padding: 10px 12px;
}

.hwt-booking-summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--hwt-line);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 14px 16px;
}

.hwt-booking-summary span {
  color: var(--hwt-muted);
  font-size: 13px;
}

.hwt-booking-summary__ref {
  color: var(--hwt-orange);
  font-size: 14px;
  font-weight: 800;
  text-align: right;
  word-break: break-all;
}

.hwt-booking-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.hwt-booking-toolbar .hwt-search {
  font-size: 15px;
  min-height: 44px;
  min-width: auto;
  padding: 0 18px;
}

.hwt-booking-toolbar .hwt-toggle {
  margin-top: 0;
}

.hwt-admin-link {
  color: var(--hwt-orange);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
}

.hwt-voucher-details {
  margin-top: 12px;
}

.hwt-voucher-details > summary {
  color: var(--hwt-muted);
  cursor: pointer;
  font-size: 13px;
  list-style: none;
  user-select: none;
}

.hwt-voucher-details > summary::-webkit-details-marker {
  display: none;
}

.hwt-voucher-details[open] > summary {
  margin-bottom: 8px;
}

.hwt-voucher-sheet__head {
  background: linear-gradient(135deg, #ff6b00 0%, #e45e00 100%);
  color: #fff;
  padding: 18px 22px;
}

.hwt-voucher-sheet__brand {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.92;
  text-transform: uppercase;
}

.hwt-voucher-sheet__title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  margin-top: 4px;
}

.hwt-voucher-sheet__intro {
  font-size: 13px;
  margin-top: 6px;
  opacity: 0.95;
}

.hwt-voucher-sheet__body {
  padding: 18px 22px 22px;
}

.hwt-voucher-sheet__refbox {
  background: #fff7ed;
  border: 1px dashed #fdba74;
  border-radius: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  text-align: center;
}

.hwt-voucher-sheet__reflabel {
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hwt-voucher-sheet__ref {
  color: #111827;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin: 6px 0 0;
}

.hwt-voucher-sheet__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hwt-voucher-sheet__section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.hwt-voucher-sheet__section h3 {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.hwt-voucher-sheet__list {
  margin: 0;
}

.hwt-voucher-sheet__list div {
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 6px 0;
}

.hwt-voucher-sheet__list div:last-child {
  border-bottom: 0;
}

.hwt-voucher-sheet__list dt {
  color: #64748b;
  flex: 0 0 42%;
  font-size: 12px;
}

.hwt-voucher-sheet__list dd {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
  text-align: right;
}

.hwt-voucher-sheet__note {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  color: #334155;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 12px;
  padding: 10px 12px;
}

.hwt-voucher-sheet__note strong {
  color: #64748b;
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.hwt-voucher-sheet__pay {
  background: #f1f5f9;
  border-radius: 12px;
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 16px;
  padding: 14px 16px;
}

.hwt-voucher-sheet__foot {
  color: #64748b;
  font-size: 13px;
  margin-top: 18px;
  text-align: center;
}

.hwt-toggle {
  background: transparent;
  border: 1px solid var(--hwt-orange);
  border-radius: 10px;
  color: var(--hwt-orange);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 0 16px;
}

@media (max-width: 900px) {
  .hwt-form__grid,
  .hwt-card {
    grid-template-columns: 1fr;
  }

  .hwt-search {
    min-height: 52px;
    width: 100%;
  }

  .hwt-card__body,
  .hwt-price {
    padding: 16px;
    text-align: left;
  }

  .hwt-voucher-sheet__grid {
    grid-template-columns: 1fr;
  }
}
