/* ============================================
   ROOMS INFORMATION – Grid & Page Styles
   ============================================ */

/* ---------- Page container (EMS pattern) ---------- */
.rooms-info-page {
  padding: 1rem;
  font-family: 'Poppins', sans-serif;
}

/* ---------- Top bar: title + hotel selector ---------- */
.rooms-info-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.rooms-info-title {
  font-weight: 600;
  font-size: 28px;
  color: #2c2c2c;
  margin: 0;
}

.rooms-info-selects {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
}

.rooms-info-select-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.rooms-info-select-label {
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 300;
  color: #2c2c2c;
  margin: 0;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.rooms-info-hotel-select {
  min-width: 200px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #2c2c2c;
  background: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23555' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 32px;
}

.rooms-info-hotel-select:hover {
  border-color: #b0b0b0;
}

.rooms-info-hotel-select:focus {
  outline: none;
  border-color: #4a90e2;
  box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* ---------- Room header with date navigation ---------- */
.rooms-info-room-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding-left: 10px;
}

.rooms-info-nav-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rooms-info-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: 5px;
  border: 2px solid #000;
  background: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  padding: 6px;
  box-sizing: border-box;
  opacity: 1;
}

.rooms-info-nav-btn:hover {
  background: #f0f0f0;
}

.rooms-info-nav-btn svg {
  width: 10px;
  height: 10px;
}

.rooms-info-room-header-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #000;
  line-height: 100%;
  letter-spacing: 0%;
}

/* ---------- Grid wrapper (scrollable) ---------- */
.rooms-info-grid-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  background: #fff;
}

/* ---------- Table ---------- */
.rooms-info-table {
  border-collapse: separate;
  border-spacing: 0 4px;
  table-layout: fixed;
  width: 100%;
  min-width: 1440px;
  font-family: 'Poppins', sans-serif;
}

/* ---------- Header row ---------- */
.rooms-info-table thead th {
  background: #fff;
  font-weight: 600;
  font-size: 13px;
  color: #555;
  text-align: center;
  padding: 8px 4px;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 2;
}

.rooms-info-table thead th:first-child {
  width: 144px;
  min-width: 144px;
  text-align: left;
  padding: 8px 18px;
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fff;
  box-sizing: border-box;
  vertical-align: top;
}

/* Date column header: card-style – match column width to body cells */
.rooms-info-table thead th.rooms-info-date-th {
  width: 108px;
  min-width: 108px;
  padding: 6px;
  vertical-align: top;
  background: transparent;
  box-sizing: border-box;
}

.rooms-info-date-card {
  background: #FBF7EF;
  border-radius: 5px;
  padding: 18px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 60px;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  opacity: 1;
}

.rooms-info-date-day {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000000;
  line-height: 100%;
  letter-spacing: 0%;
}

.rooms-info-date-label {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 12px;
  color: #555555;
  line-height: 100%;
}

/* ---------- Body rows – fixed height so rows with/without bookings match ---------- */
.rooms-info-table tbody tr {
  height: 115px;
}

.rooms-info-table tbody td {
  border: none;
  vertical-align: top;
  width: 108px;
  min-width: 108px;
  height: 135px;
  max-height: 135px;
  padding: 6px;
  border-radius: 5px;
  box-sizing: border-box;
  opacity: 1;
  overflow: hidden;
}

.rooms-info-table tbody td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  width: 144px;
  min-width: 144px;
  height: 135px;
  max-height: 135px;
  padding: 8px 18px;
  border: none;
  background: #fff;
  vertical-align: top;
  box-sizing: border-box;
  opacity: 1;
  overflow: hidden;
}

/* Force row height: inner cell has fixed height so content never stretches the row */
.rooms-info-table tbody td .rooms-info-cell {
  height: 123px;
  min-height: 123px;
  max-height: 123px;
}

.rooms-info-table tbody tr:last-child td {
  border-bottom: none;
}

/* ---------- Room card (inner card in first column) ---------- */
.rooms-info-room-card {
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  padding: 5px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
  border-radius: 5px;
  border: 1px solid #c0c0c0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  background: #F6F2EB;
  box-sizing: border-box;
  opacity: 1;
  overflow: hidden;
}

.rooms-info-room-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #000;
  line-height: 100%;
  letter-spacing: 0%;
}

.rooms-info-room-beds {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #000;
  line-height: 100%;
  letter-spacing: 0%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rooms-info-bed-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  object-fit: contain;
}

/* ---------- Inside cards (room-detail cells) – fixed height, no row stretch ---------- */
.rooms-info-cell {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.15;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-radius: 5px;
  border: 1px solid #c0c0c0;
  box-sizing: border-box;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
  position: relative;
}

.rooms-info-cell:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border-color: #a0a0a0;
}

/* ---------- Drag-selected highlight ---------- */
.rooms-info-cell--drag-selected {
  outline: 2px solid #4a90e2;
  background: #e8f0fe !important;
}

.rooms-info-cell--edit-drag-selected {
  outline: 2px solid #e2a04a;
  box-shadow: 0 0 0 2px rgba(226, 160, 74, 0.25);
}

/* ---------- Disabled / out-of-range cell ---------- */
.rooms-info-cell--disabled {
  background: #f0f0f0;
  border-color: #e0e0e0;
  cursor: default;
  pointer-events: none;
}

.rooms-info-cell--disabled:hover {
  box-shadow: none;
  border-color: #e0e0e0;
}

/* ---------- Available cell (price at top, centered horizontally) ---------- */
.rooms-info-cell--available {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 6px 5px 0 5px;
}

.rooms-info-cell--available .rooms-info-cell-price {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #32BE25;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  width: 100%;
}

/* ---------- Booked cell – standard (green) ---------- */
.rooms-info-cell--standard {
  background: #BEE38A8C;
}

/* Athlete booking styles – commented out for now
---------- Booked cell – athlete (green with yellow name badge) ----------
.rooms-info-cell--athlete {
  background: #BEE38A8C;
}
*/

/* ---------- Booked cell – private (red/pink) ---------- */
.rooms-info-cell--private {
  background: #FF00001A;
}

/* ---------- Booked cell content ---------- */
.rooms-info-cell-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: #222;
  line-height: 100%;
  letter-spacing: 0%;
  margin-bottom: 0;
}

/* Yellow badge for athlete name – commented out for now
.rooms-info-cell-name--athlete-badge {
  background: #fff3cd;
  padding: 3px 6px;
  border-radius: 4px;
  display: inline-block;
}
*/

.rooms-info-cell-team {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #363636;
  line-height: 100%;
  letter-spacing: 0%;
  width: 76px;
  min-height: 12px;
  margin-bottom: 0;
  opacity: 1;
}

.rooms-info-cell-price-booked {
  font-family: 'Geist', sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 170%;
  letter-spacing: 0%;
  color: #32BE25;
  margin-bottom: 10px;
}

.rooms-info-cell-meta {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #363636;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.rooms-info-cell-meta-line {
  display: inline-flex;
  align-items: center;
  /* gap: 4px; */
  white-space: nowrap;
}

.rooms-info-cell-info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  border: none;
  background: transparent;
  color: #666;
  cursor: pointer;
  border-radius: 50%;
  transition: color 0.15s, background 0.15s;
}

.rooms-info-cell-info-btn:hover {
  color: #333;
  background: rgba(0, 0, 0, 0.06);
}

.rooms-info-cell-info-btn svg {
  font-size: 10px;
}

.rooms-info-cell-meta-occupants--expanded {
  display: block;
  width: 100%;
  font-size: 9px;
  color: #555;
  margin-top: 2px;
  padding-left: 0;
}

.rooms-info-cell-status {
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 11px;
  line-height: 100%;
  letter-spacing: 0%;
  margin-top: 1px;
}

.rooms-info-cell-status--required {
  color: #28a745;
}

.rooms-info-cell-status--private {
  color: #dc3545;
}

/* ---------- Past-date cell (within room window but before today) ---------- */
.rooms-info-cell--past {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.rooms-info-cell--past.rooms-info-cell--standard,
/* .rooms-info-cell--past.rooms-info-cell--athlete, */
.rooms-info-cell--past.rooms-info-cell--private {
  pointer-events: auto;
  cursor: pointer;
}

.rooms-info-cell--past:hover {
  box-shadow: none;
}

.rooms-info-cell-room-type {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0%;
  text-align: center;
  display: block;
}

.rooms-info-cell-room-type--required {
  color: #28563E;
}

.rooms-info-cell-room-type--private {
  color: #FF0000;
}

/* .rooms-info-cell-room-type--athlete {
  color: #28563E;
} */

.rooms-info-cell-beds {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 10px;
  line-height: 100%;
  letter-spacing: 0%;
  color: #363636;
  margin-top: 2px;
  display: block;
}

/* ---------- Multi-booking cell inner wrapper & slide animation ---------- */
.rooms-info-cell-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 4px 5px;
}

.rooms-info-cell-top {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rooms-info-cell-top .rooms-info-cell-price-booked {
  margin-bottom: 0;
}

.rooms-info-cell-bottom {
  margin-top: auto;
  /* margin-bottom: 2 px; */
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rooms-info-cell-slide-in-right {
  animation: slideInRight 250ms ease-out;
}

.rooms-info-cell-slide-in-left {
  animation: slideInLeft 250ms ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideInLeft {
  from { transform: translateX(-100%); opacity: 0; }
  to   { transform: translateX(0);     opacity: 1; }
}

/* ---------- Multi-booking nav (footer) ---------- */
.rooms-info-cell-nav-footer,
.rooms-info-cell-nav-footer-spacer {
  flex-shrink: 0;
  min-height: 22px;
}

.rooms-info-cell-nav-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  padding: 2px 4px;
  margin-top: auto;
  border-radius: 0 0 5px 5px;
}

.rooms-info-cell-nav-footer-spacer {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.rooms-info-cell-nav-btn {
  border: none;
  background: transparent;
  border-radius: 3px;
  font-size: 9px;
  line-height: 1;
  padding: 3px 5px;
  cursor: pointer;
  color: #222;
  transition: background 0.2s;
}

.rooms-info-cell-nav-btn:hover {
  transition: transform 0.18s cubic-bezier(0.48,0.15,0.41,0.98);

  transform: scale(1.3);
}


.rooms-info-icon {
  margin-right: 4px;
  color: #363636;
}

.rooms-info-icon-info-icon {
  margin-left: 10px;
  margin-bottom: 2px;
}

/* ---------- Guest-only badge ---------- */
.rooms-info-guest-only-badge {
  font-size: 8px;
  font-weight: 700;
  color: #856404;
  background: #fff3cd;
  border-radius: 3px;
  padding: 1px 3px;
  margin-left: 3px;
  vertical-align: middle;
}

/* ============================================
   BOOKING CELL MENU – slate + amber / gold accents
   ============================================ */

.booking-cell-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

.booking-cell-menu {
  background: #f8fafc;
  border-radius: 12px;
  padding: 28px 28px 24px;
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-top: 4px solid #ca8a04;
  box-shadow:
    0 2px 0 rgba(202, 138, 4, 0.45),
    0 24px 56px rgba(15, 23, 42, 0.18);
}

.booking-cell-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.booking-cell-menu-title {
  margin: 0;
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.25;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.booking-cell-menu-close {
  border: none;
  background: #e2e8f0;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  color: #475569;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}

.booking-cell-menu-close:hover {
  background: #fef3c7;
  color: #78350f;
}

.booking-cell-menu-close:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}

.booking-cell-menu-date {
  margin-bottom: 18px;
}

.booking-cell-menu-date--panel {
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  border-left: 3px solid #ca8a04;
}

.booking-cell-menu-error {
  color: #dc3545;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 500;
}

.booking-cell-menu-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
  border-left: 4px solid #ca8a04;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.booking-cell-menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.booking-cell-menu-card-name {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.35;
}

.booking-cell-menu-card-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.booking-cell-menu-card-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.booking-cell-menu-card-details {
  font-size: 12px;
  color: #475569;
  margin-top: 10px;
  line-height: 1.5;
  font-weight: 500;
}

.booking-cell-menu-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

/* Labelled dates: From / To / Date — scannable copy */
.booking-date-summary--hero.booking-date-summary--single {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.booking-date-summary--hero.booking-date-summary--range {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.booking-date-summary__row {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px 14px;
  align-items: start;
}

.booking-date-summary__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  padding-top: 4px;
}

.booking-date-summary__value {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.35;
}

.booking-date-summary--compact.booking-date-summary--single {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.booking-date-summary--compact.booking-date-summary--range {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.booking-date-summary--compact .booking-date-summary__row {
  grid-template-columns: 44px 1fr;
  gap: 6px 10px;
}

.booking-date-summary--compact .booking-date-summary__label {
  font-size: 10px;
  padding-top: 2px;
}

.booking-date-summary--compact .booking-date-summary__value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.booking-cell-menu-footer--with-add {
  justify-content: space-between;
}

.booking-cell-menu .btn:focus-visible {
  outline: 2px solid #b45309;
  outline-offset: 2px;
}

/* AllocationModal – same amber accent as booking modals */
.allocation-modal-panel {
  border-top: 4px solid #ca8a04;
  box-shadow:
    0 2px 0 rgba(202, 138, 4, 0.4),
    0 16px 40px rgba(15, 23, 42, 0.12);
}
