/* ==========================================================================
   Compact Hotel Details Card & Stay Matrix (Step 2)
   ========================================================================== */

.hotel-section-card {
  margin: 20px 0 16px;
  border: 1px solid #dfe5ef;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(16, 24, 40, 0.03);
  overflow: hidden;
}

.hotel-section-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 12px 18px !important;
  background: #f8fafd !important;
  border-bottom: 1px solid #e7edf6 !important;
  margin: 0 !important;
  border-radius: 14px 14px 0 0 !important;
}

.hotel-heading-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hotel-heading-wrap h3 {
  margin: 0;
  font: 700 15px/1.3 Manrope, Inter, sans-serif;
  color: #0a1f44;
}

.hotel-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #3563e9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.hotel-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 14px !important;
  border-radius: 8px !important;
  background: #3563e9 !important;
  color: #fff !important;
  border: 1px solid #2854d9 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  box-shadow: 0 1px 3px rgba(53, 99, 233, 0.22) !important;
  transition: all 0.15s ease !important;
}

.hotel-add-btn:hover {
  background: #2452d6 !important;
  transform: translateY(-1px) !important;
}

.hotel-empty-state {
  padding: 30px 16px;
  text-align: center;
  background: #fafcff;
}

.hotel-empty-state p {
  margin: 0 0 12px;
  color: #667085;
  font-size: 13.5px;
}

/* Individual Hotel Stay Card */
.hotel-card {
  margin: 14px 16px 18px;
  border: 1px solid #dfe5ef;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(16, 24, 40, 0.03);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hotel-card:focus-within {
  border-color: #bcd2f8;
  box-shadow: 0 2px 8px rgba(53, 99, 233, 0.08);
}

.hotel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #e9eef5;
}

.hotel-badge-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hotel-card-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #3563e9;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.hotel-card-head h4 {
  margin: 0;
  font: 700 13.5px/1.3 Manrope, Inter, sans-serif;
  color: #0f172a;
}

.hotel-dates-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.hotel-nights-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 700;
}

.hotel-rooms-pill {
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}

.hotel-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hotel-card-del-btn {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  height: 28px !important;
  padding: 0 9px !important;
  border-radius: 6px !important;
  background: #feecef !important;
  color: #d63e55 !important;
  border: 1px solid #ffd6dc !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.hotel-card-del-btn:hover {
  background: #f04438 !important;
  color: #fff !important;
  border-color: #d92d20 !important;
}

/* Hotel Card Body & Rows */
.hotel-card-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
}

.hotel-grid-row {
  display: grid;
  gap: 10px;
  align-items: flex-end;
}

.hotel-row-stay {
  grid-template-columns: 1.1fr 1.8fr 1.1fr 0.65fr 1fr 1fr;
}

.hotel-row-booking {
  grid-template-columns: 1fr 1fr 1.1fr 1.1fr 1fr;
}

.hotel-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hotel-cell label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #556582 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.4px !important;
  margin: 0 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hotel-cell input {
  width: 100% !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 5px 8px !important;
  font-size: 13px !important;
  border: 1px solid #d9dfe9 !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #15213d !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.025) !important;
  transition: border-color 0.15s, box-shadow 0.15s !important;
  box-sizing: border-box !important;
}

.hotel-cell input:focus {
  border-color: #3563e9 !important;
  box-shadow: 0 0 0 3px rgba(53, 99, 233, 0.14) !important;
  outline: 0 !important;
}

.hotel-section-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px;
  padding: 12px 18px !important;
  background: #f8fafd !important;
  border-top: 1px solid #e7edf6 !important;
  border-radius: 0 0 14px 14px !important;
}

.hotel-tab-hint {
  font-size: 11px;
  color: #667085;
  display: flex;
  align-items: center;
  gap: 5px;
}

.hotel-tab-hint kbd {
  display: inline-block;
  padding: 2px 5px;
  font-size: 10px;
  font-family: inherit;
  font-weight: 700;
  line-height: 1;
  color: #475467;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  box-shadow: 0 1px 0 #d0d5dd;
}

@media (max-width: 900px) {
  .hotel-row-stay {
    grid-template-columns: repeat(2, 1fr);
  }
  .hotel-row-booking {
    grid-template-columns: repeat(2, 1fr);
  }
  .hotel-section-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}
