/* —— Modal shell (warm ledger, matches Stay Summary) —— */
.allocation-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(28, 22, 14, 0.58);
}

.allocation-modal-panel {
  font-family: "Poppins", sans-serif;
  /* Match pre-refactor inline modal: 75vw × ~75vh box */
  width: 75vw;
  min-width: 75vw;
  max-width: 95vw;
  min-height: 75vh;
  max-height: 92vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 16px;
  border: 2px solid #c4a86a;
  background: linear-gradient(180deg, #fffef8 0%, #faf7f0 52%, #f5f1e8 100%);
  box-shadow:
    0 28px 64px rgba(45, 35, 18, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.allocation-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 2px solid rgba(92, 69, 24, 0.12);
}

.allocation-modal-title {
  margin: 0;
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #2a2418;
}

.allocation-modal-close {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: -6px -8px 0 0;
  border: 2px solid rgba(92, 69, 24, 0.22);
  border-radius: 12px;
  background: rgba(255, 254, 248, 0.95);
  color: #4a3d22;
  font-size: 26px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition:
    color 0.15s ease-out,
    background 0.15s ease-out,
    border-color 0.15s ease-out;
}

.allocation-modal-close:hover {
  background: #f5ead4;
  border-color: #a67c2c;
  color: #1e180c;
}

.allocation-modal-close:focus-visible {
  outline: 2px solid #a67c2c;
  outline-offset: 2px;
}

.allocation-modal-error {
  margin-bottom: 14px;
  padding: 12px 14px 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(176, 48, 48, 0.38);
  background: rgba(255, 236, 236, 0.97);
  color: #7a1c1c;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: inset 4px 0 0 #b32424;
}

.allocation-modal-picker {
  margin-top: 4px;
  margin-bottom: 8px;
}

.allocation-modal-guest-block {
  margin-top: 12px;
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid rgba(92, 69, 24, 0.18);
  background: linear-gradient(180deg, #fffdf9 0%, #faf6ee 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-size: 15px;
  color: #3d3628;
}

.allocation-modal-guest-block__heading {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #2a2418;
  margin-bottom: 12px;
  line-height: 1.3;
}

.allocation-modal-guest-block__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.allocation-modal-guest-block__item + .allocation-modal-guest-block__item {
  margin-top: 10px;
}

.allocation-modal-guest-block__check {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 600;
  color: #2a2418;
}

.allocation-modal-guest-block__empty {
  font-weight: 600;
  color: #6b5d48;
  font-style: italic;
}

.allocation-modal-inline-check {
  margin-bottom: 18px;
}

.allocation-modal-inline-check label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  color: #2a2418;
}

.allocation-modal-field {
  margin-bottom: 18px;
}

.allocation-modal-label {
  display: block;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c4518;
  margin-bottom: 8px;
}

.allocation-modal-row2 {
  display: flex;
  gap: 18px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.allocation-modal-row2 > * {
  flex: 1;
  min-width: 140px;
}

.allocation-modal-row2 .allocation-modal-field {
  margin-bottom: 0;
}

.allocation-modal-panel .form-control {
  border: 2px solid rgba(92, 69, 24, 0.22) !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #1e1a14 !important;
  background: #fffef9 !important;
  transition:
    border-color 0.15s ease-out,
    box-shadow 0.15s ease-out,
    background 0.15s ease-out;
}

.allocation-modal-panel .form-control:focus {
  border-color: #a67c2c !important;
  box-shadow: 0 0 0 3px rgba(166, 124, 44, 0.22) !important;
  background: #fff !important;
}

.allocation-modal-panel .allocation-guest-count-input.form-control[readonly] {
  background: #efe8dc !important;
  color: #4a4034 !important;
  border-color: rgba(92, 69, 24, 0.18) !important;
}

.allocation-modal-footer {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 2px solid rgba(92, 69, 24, 0.12);
}

/* Sizing + weight — colors come from Bootstrap btn-secondary / btn-warning */
.allocation-modal-action-btn {
  min-width: 160px;
  border-radius: 0.375rem !important;
  padding: 10px 18px !important;
  line-height: 1.2;
  font-size: 16px;
  font-weight: 700 !important;
}

@media (prefers-reduced-motion: reduce) {
  .allocation-modal-close,
  .allocation-modal-panel .form-control {
    transition: none;
  }
}

.allocation-modal-stay-orbit {
  margin-bottom: 22px;
  border: 2px solid #a67c2c;
  border-radius: 14px;
  background: linear-gradient(155deg, #f0e2b8 0%, #f3e8cc 38%, #faf3e3 100%);
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.allocation-modal-stay-orbit__head {
  display: flex;
  align-items: center;
  padding: 12px 16px 12px 14px;
  background: rgba(107, 84, 32, 0.12);
  background: color-mix(in srgb, #6b5420 14%, transparent);
  box-shadow: inset 5px 0 0 #5c4518;
}

.allocation-modal-stay-orbit__title {
  font-size: clamp(15px, 1.35vw, 18px);
  font-weight: 900;
  letter-spacing: 0.12em;
  margin-left: 0;
  text-transform: uppercase;
  color: #3d3318;
  line-height: 1.15;
}

.allocation-modal-stay-orbit__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 12px 14px;
  border-radius: 0;
  border: none;
  border-top: 1px solid rgba(92, 69, 24, 0.22);
  border-top: 1px solid color-mix(in srgb, #5c4518 22%, transparent);
  background: #faf6ec;
  margin: 0;
}

/* One row: room + icon left; date range then clock icon on the right */
.allocation-modal-stay-orbit__summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 12px 10px;
  min-width: 0;
}

.allocation-modal-stay-orbit__segment--room {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
  flex: 0 1 auto;
}

.allocation-modal-stay-orbit__segment--dates {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 17px;
  flex: 1 1 auto;
  min-width: 0;
}

.allocation-modal-stay-orbit__content--dates {
  text-align: right;
  min-width: 0;
}

.allocation-modal-stay-orbit__glyph {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #f4ead2;
  background: linear-gradient(160deg, #4a3d22 0%, #5c4a28 100%);
  border: 1px solid #3a3018;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.allocation-modal-stay-orbit__glyph--date {
  color: #f4ead2;
  background: linear-gradient(160deg, #3d3220 0%, #524428 100%);
  border-color: #2e2614;
}

.allocation-modal-stay-orbit__content {
  min-width: 0;
}

.allocation-modal-stay-orbit__key {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5c4f36;
  line-height: 1.2;
  display: block;
  margin-bottom: 4px;
}

.allocation-modal-stay-orbit__value {
  font-size: clamp(17px, 2.1vw, 21px);
  font-weight: 800;
  color: #1e242c;
  line-height: 1.25;
  display: block;
  overflow-wrap: anywhere;
  letter-spacing: -0.02em;
}

.allocation-modal-stay-orbit__value--date {
  color: #1a1f26;
}

@media (max-width: 640px) {
  .allocation-modal-stay-orbit__summary-row {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .allocation-modal-stay-orbit__segment--dates {
    flex: 1 1 100%;
    width: 100%;
    justify-content: space-between;
  }

  .allocation-modal-stay-orbit__content--dates {
    flex: 1;
    text-align: left;
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .allocation-modal-stay-orbit__value {
    font-size: clamp(17px, 4.2vw, 20px);
  }

  .allocation-modal-stay-orbit__head {
    padding: 10px 14px 10px 12px;
  }
}

